# HG changeset patch # User Sam Lantinga # Date 1295392073 28800 # Node ID 38638d228a22d91ccfad5307e83ca691daa5d07f # Parent 5e44591800b6ad385fc973779179a85b06e2f261 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. :) diff -r 5e44591800b6 -r 38638d228a22 include/SDL_atomic.h --- 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 #define SDL_AtomicSet(a, v) _InterlockedExchange((long*)&(a)->value, (v))