From 39e8b007a7a2b58c6b94530d4d4d8caf8a4be0d2 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 27 Jul 2019 14:08:51 -0300 Subject: [PATCH] macOS: fix atomics using deprecated functions instead of compiler intrinsics, when SDL is built with the Xcode project. --- include/SDL_config_macosx.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/SDL_config_macosx.h b/include/SDL_config_macosx.h index c494b2e31..16d05097d 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