From 06aed12790665813976fef54ff90c8067653713c Mon Sep 17 00:00:00 2001
From: Sam Lantinga <slouken@libsdl.org>
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 bccb9135..de643f8d 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 <intrin.h>
 
 #define SDL_AtomicSet(a, v)     _InterlockedExchange((long*)&(a)->value, (v))
-- 
2.18.1