comparison include/SDL_config_iphoneos.h @ 5004:0c72ae7b7cb2

Added native atomic operations for Windows, Mac OS X, and gcc compiler intrinsics. Changed the CAS return value to bool, so it's efficient with OSAtomicCompareAndSwap32Barrier() Added an atomic test adapted from code by Michael Davidsaver
author Sam Lantinga <slouken@libsdl.org>
date Sun, 16 Jan 2011 15:16:39 -0800
parents c5b9486688ce
children 042ad5e274ed
comparison
equal deleted inserted replaced
5003:3a95a2b93eb3 5004:0c72ae7b7cb2
40 #else 40 #else
41 #define SIZEOF_VOIDP 4 41 #define SIZEOF_VOIDP 4
42 #endif 42 #endif
43 43
44 #define SDL_HAS_64BIT_TYPE 1 44 #define SDL_HAS_64BIT_TYPE 1
45
46 #define HAVE_GCC_ATOMICS 1
45 47
46 #define HAVE_ALLOCA_H 1 48 #define HAVE_ALLOCA_H 1
47 #define HAVE_SYS_TYPES_H 1 49 #define HAVE_SYS_TYPES_H 1
48 #define HAVE_STDIO_H 1 50 #define HAVE_STDIO_H 1
49 #define STDC_HEADERS 1 51 #define STDC_HEADERS 1