changeset 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 5e44591800b6
children 63034cfd33de
files include/SDL_atomic.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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))