Not all MinGW compilers have intrin.h, so we'll only use this with Visual Studio.
authorSam Lantinga <slouken@libsdl.org>
Tue, 18 Jan 2011 15:07:53 -0800
changeset 502438638d228a22
parent 5023 5e44591800b6
child 5025 63034cfd33de
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. :)
include/SDL_atomic.h
     1.1 --- a/include/SDL_atomic.h	Tue Jan 18 15:02:59 2011 -0800
     1.2 +++ b/include/SDL_atomic.h	Tue Jan 18 15:07:53 2011 -0800
     1.3 @@ -112,7 +112,7 @@
     1.4   */
     1.5  #ifndef SDL_DISABLE_ATOMIC_INLINE
     1.6  
     1.7 -#if defined(__WIN32__)
     1.8 +#if defined(_MSC_VER)
     1.9  #include <intrin.h>
    1.10  
    1.11  #define SDL_AtomicSet(a, v)     _InterlockedExchange((long*)&(a)->value, (v))