comparison 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
comparison
equal deleted inserted replaced
2371:67f98f3e47f4 2372:df0a66945296
121 # ifndef GDK_WINDOWING_WIN32 121 # ifndef GDK_WINDOWING_WIN32
122 # define GDK_WINDOWING_WIN32 122 # define GDK_WINDOWING_WIN32
123 # endif 123 # endif
124 #endif 124 #endif
125 125
126 #if defined(__OS2__) || (defined(__WIN32__) && !defined(GDK_WINDOWING_WIN32)) || defined(__MAC__) || defined(__EMX__) || defined(__TEMPLATE__) 126 #if defined(__OS2__) || (defined(__WIN32__) && !defined(GDK_WINDOWING_WIN32)) || defined(__MAC__) || defined(__IOS__) || defined(__EMX__) || defined(__TEMPLATE__)
127 /* OS/2, Windows or MacOS */ 127 /* OS/2, Windows or MacOS */
128 128
129 #ifdef __OS2__ 129 #ifdef __OS2__
130 # if (defined(__IBMC__) || defined(__WATCOMC__) || defined(_System)) && !defined(API) 130 # if (defined(__IBMC__) || defined(__WATCOMC__) || defined(_System)) && !defined(API)
131 # define API _System 131 # define API _System
340 #define snprintf _dw_snprintf 340 #define snprintf _dw_snprintf
341 #endif 341 #endif
342 342
343 #endif 343 #endif
344 344
345 #if defined(__MAC__) 345 #if defined(__MAC__) || defined (__IOS__)
346 /* MacOS specific section */ 346 /* MacOS and iOS specific section */
347 #include <pthread.h> 347 #include <pthread.h>
348 #include <dlfcn.h> 348 #include <dlfcn.h>
349 349
350 /* Unfortunately using Cocoa we can't include 350 /* Unfortunately using we can't import Cocoa.h
351 * Cocoa.h from C code, so we have to instead 351 * or UIKit.h from C code, so we have to instead
352 * use opaque types and use the values from 352 * use opaque types and use the values from
353 * Cocoa.h in the header here directly without 353 * the headers here directly without using the
354 * using the symbolic names. 354 * symbolic names.
355 */ 355 */
356 356
357 #define TRUE 1 357 #define TRUE 1
358 #define FALSE 0 358 #define FALSE 0
359 359