diff --git a/src/atomic/SDL_spinlock.c b/src/atomic/SDL_spinlock.c index bdd347e41..4f10741c7 100644 --- a/src/atomic/SDL_spinlock.c +++ b/src/atomic/SDL_spinlock.c @@ -28,6 +28,12 @@ #include "SDL_mutex.h" #include "SDL_timer.h" +#if defined(__WIN32__) && defined(__clang__) +# ifndef HAVE_GCC_ATOMICS +# define HAVE_GCC_ATOMICS 1 +# endif +#endif + #if !defined(HAVE_GCC_ATOMICS) && defined(__SOLARIS__) #include #endif