Sfoglia il codice sorgente

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

Alex Szpakowski 6 anni fa
parent
commit
39e8b007a7
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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