1.1 --- a/include/SDL_atomic.h Mon Feb 25 16:52:42 2013 -0800
1.2 +++ b/include/SDL_atomic.h Mon Feb 25 16:52:48 2013 -0800
1.3 @@ -126,7 +126,7 @@
1.4 * The compiler barrier prevents the compiler from reordering
1.5 * reads and writes to globally visible variables across the call.
1.6 */
1.7 -#ifdef _MSC_VER
1.8 +#if defined(_MSC_VER) && (_MSC_VER > 1200)
1.9 void _ReadWriteBarrier(void);
1.10 #pragma intrinsic(_ReadWriteBarrier)
1.11 #define SDL_CompilerBarrier() _ReadWriteBarrier()
1.12 @@ -134,7 +134,7 @@
1.13 #define SDL_CompilerBarrier() __asm__ __volatile__ ("" : : : "memory")
1.14 #else
1.15 #define SDL_CompilerBarrier() \
1.16 -({ SDL_SpinLock _tmp = 0; SDL_AtomicLock(&_tmp); SDL_AtomicUnlock(&_tmp); })
1.17 +{ SDL_SpinLock _tmp = 0; SDL_AtomicLock(&_tmp); SDL_AtomicUnlock(&_tmp); }
1.18 #endif
1.19
1.20 /* Platform specific optimized versions of the atomic functions,