equal
deleted
inserted
replaced
139 #endif |
139 #endif |
140 |
140 |
141 /* Platform specific optimized versions of the atomic functions, |
141 /* Platform specific optimized versions of the atomic functions, |
142 * you can disable these by defining SDL_DISABLE_ATOMIC_INLINE |
142 * you can disable these by defining SDL_DISABLE_ATOMIC_INLINE |
143 */ |
143 */ |
|
144 #if SDL_ATOMIC_DISABLED |
|
145 #define SDL_DISABLE_ATOMIC_INLINE |
|
146 #endif |
144 #ifndef SDL_DISABLE_ATOMIC_INLINE |
147 #ifndef SDL_DISABLE_ATOMIC_INLINE |
145 |
148 |
146 #ifdef HAVE_MSC_ATOMICS |
149 #ifdef HAVE_MSC_ATOMICS |
147 |
150 |
148 #define SDL_AtomicSet(a, v) _InterlockedExchange((long*)&(a)->value, (v)) |
151 #define SDL_AtomicSet(a, v) _InterlockedExchange((long*)&(a)->value, (v)) |