diff --git a/src/atomic/SDL_spinlock.c b/src/atomic/SDL_spinlock.c index 53776d5e0..cbe5445f1 100644 --- a/src/atomic/SDL_spinlock.c +++ b/src/atomic/SDL_spinlock.c @@ -44,6 +44,10 @@ #include #endif +#if !defined(HAVE_GCC_ATOMICS) && defined(__MACOSX__) +#include +#endif + #if defined(__WATCOMC__) && defined(__386__) SDL_COMPILE_TIME_ASSERT(locksize, 4==sizeof(SDL_SpinLock)); extern __inline int _SDL_xchg_watcom(volatile int *a, int v);