diff include/SDL_atomic.h @ 5024:38638d228a22

Not all MinGW compilers have intrin.h, so we'll only use this with Visual Studio. That's actually okay, since gcc has the builtin atomic intrinsics. :)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 18 Jan 2011 15:07:53 -0800
parents cc879bc6c4cf
children 1e94e68525d5
line wrap: on
line diff
--- a/include/SDL_atomic.h	Tue Jan 18 15:02:59 2011 -0800
+++ b/include/SDL_atomic.h	Tue Jan 18 15:07:53 2011 -0800
@@ -112,7 +112,7 @@
  */
 #ifndef SDL_DISABLE_ATOMIC_INLINE
 
-#if defined(__WIN32__)
+#if defined(_MSC_VER)
 #include <intrin.h>
 
 #define SDL_AtomicSet(a, v)     _InterlockedExchange((long*)&(a)->value, (v))