Browse Source

macOS: fix atomics using deprecated functions instead of compiler intrinsics, when SDL is built with the Xcode project.

Alex Szpakowski 5 years ago
parent
commit
39e8b007a7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/SDL_config_macosx.h

+ 2 - 0
include/SDL_config_macosx.h

@@ -130,6 +130,8 @@
 #define HAVE_SYSCONF    1
 #define HAVE_SYSCTLBYNAME 1
 
+#define HAVE_GCC_ATOMICS 1
+
 /* Enable various audio drivers */
 #define SDL_AUDIO_DRIVER_COREAUDIO  1
 #define SDL_AUDIO_DRIVER_DISK   1