Commit 39e8b007a7a2b58c6b94530d4d4d8caf8a4be0d2

Alex Szpakowski 2019-07-27T14:08:51

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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/SDL_config_macosx.h b/include/SDL_config_macosx.h
index c494b2e..16d0509 100644
--- a/include/SDL_config_macosx.h
+++ b/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