diff 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
line wrap: on
line diff
--- a/include/SDL_config_iphoneos.h	Sat Jan 15 12:41:59 2011 -0800
+++ b/include/SDL_config_iphoneos.h	Sun Jan 16 15:16:39 2011 -0800
@@ -43,6 +43,8 @@
 
 #define SDL_HAS_64BIT_TYPE	1
 
+#define HAVE_GCC_ATOMICS	1
+
 #define HAVE_ALLOCA_H		1
 #define HAVE_SYS_TYPES_H	1
 #define HAVE_STDIO_H	1