diff dw.h @ 2372:df0a66945296

iOS: Initial commit of iOS source... based on MacOS code... Doesn't build yet... but wanted to commit it so I can change locations.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 16 Mar 2021 22:52:53 +0000
parents fad0821cb953
children e6449653a30b
line wrap: on
line diff
--- a/dw.h	Sun Mar 14 17:45:06 2021 +0000
+++ b/dw.h	Tue Mar 16 22:52:53 2021 +0000
@@ -123,7 +123,7 @@
 # endif
 #endif
 
-#if defined(__OS2__) || (defined(__WIN32__) && !defined(GDK_WINDOWING_WIN32)) || defined(__MAC__) || defined(__EMX__) || defined(__TEMPLATE__)
+#if defined(__OS2__) || (defined(__WIN32__) && !defined(GDK_WINDOWING_WIN32)) || defined(__MAC__) || defined(__IOS__) || defined(__EMX__) || defined(__TEMPLATE__)
 /* OS/2, Windows or MacOS */
 
 #ifdef __OS2__
@@ -342,16 +342,16 @@
 
 #endif
 
-#if defined(__MAC__)
-/* MacOS specific section */
+#if defined(__MAC__) || defined (__IOS__)
+/* MacOS and iOS specific section */
 #include <pthread.h>
 #include <dlfcn.h>
 
-/* Unfortunately using Cocoa we can't include
- * Cocoa.h from C code, so we have to instead
+/* Unfortunately using we can't import Cocoa.h
+ * or UIKit.h from C code, so we have to instead
  * use opaque types and use the values from
- * Cocoa.h in the header here directly without
- * using the symbolic names.
+ * the headers here directly without using the
+ * symbolic names.
  */
 
 #define TRUE 1