comparison dw.h @ 2451:44b77654c406

Add DW_DIR_SEPARATOR for easy access to the separator characters. There is something similar in dwcompat.h but I don't want to require including dwcompat.h on Unix, in case dwcompat isn't built.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 10 Apr 2021 20:11:43 +0000
parents 0286ac44d347
children aa420e366b2b
comparison
equal deleted inserted replaced
2450:2c03987c95bd 2451:44b77654c406
345 #if defined(__MAC__) || defined (__IOS__) 345 #if defined(__MAC__) || defined (__IOS__)
346 /* MacOS and iOS 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 we can't import Cocoa.h 350 /* Unfortunately we can't import Cocoa.h or
351 * or UIKit.h from C code, so we have to instead 351 * 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 * the headers here directly without using the 353 * the headers here directly without using the
354 * symbolic names. 354 * symbolic names.
355 */ 355 */
356 356
1357 UCHAR ucReserved; 1357 UCHAR ucReserved;
1358 } CTIME; 1358 } CTIME;
1359 typedef CTIME *PCTIME; 1359 typedef CTIME *PCTIME;
1360 #endif 1360 #endif
1361 1361
1362 #if defined(__OS2__) || (defined(__WIN32__) && !defined(GDK_WINDOWING_WIN32)) || (defined(WINNT) && !defined(GDK_WINDOWING_WIN32)) || defined(__EMX__) 1362 /* Define a few things missing on OS/2 and Windows */
1363 #if defined(__OS2__) || (defined(__WIN32__) && !defined(GDK_WINDOWING_WIN32)) || \
1364 (defined(WINNT) && !defined(GDK_WINDOWING_WIN32)) || defined(__EMX__)
1363 typedef unsigned long DWTID; 1365 typedef unsigned long DWTID;
1366 #define DW_DIR_SEPARATOR '\\'
1364 #endif 1367 #endif
1365 1368
1366 /* Some dark mode constants for supported platforms */ 1369 /* Some dark mode constants for supported platforms */
1367 #define DW_DARK_MODE_DISABLED 0 1370 #define DW_DARK_MODE_DISABLED 0
1368 #define DW_DARK_MODE_BASIC 1 1371 #define DW_DARK_MODE_BASIC 1
1573 #endif 1576 #endif
1574 #define DW_POINTER(a) ((void *)a) 1577 #define DW_POINTER(a) ((void *)a)
1575 1578
1576 #ifndef DW_FCF_COMPOSITED 1579 #ifndef DW_FCF_COMPOSITED
1577 #define DW_FCF_COMPOSITED 0 1580 #define DW_FCF_COMPOSITED 0
1581 #endif
1582
1583 #ifndef DW_DIR_SEPARATOR
1584 #define DW_DIR_SEPARATOR '/'
1578 #endif 1585 #endif
1579 1586
1580 #ifndef API 1587 #ifndef API
1581 #define API 1588 #define API
1582 #endif 1589 #endif