From 4f5653ff63a62356d39586fd97f4a3d6c0eb6c7c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 18 Jan 2011 15:07:53 -0800 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL_atomic.h b/include/SDL_atomic.h index bccb91353..de643f8d8 100644 --- a/include/SDL_atomic.h +++ b/include/SDL_atomic.h @@ -112,7 +112,7 @@ extern DECLSPEC void SDLCALL SDL_AtomicUnlock(SDL_SpinLock *lock); */ #ifndef SDL_DISABLE_ATOMIC_INLINE -#if defined(__WIN32__) +#if defined(_MSC_VER) #include #define SDL_AtomicSet(a, v) _InterlockedExchange((long*)&(a)->value, (v))