macOS: fix atomics using deprecated functions instead of compiler intrinsics, when SDL is built with the Xcode project.
authorAlex Szpakowski <slime73@gmail.com>
Sat, 27 Jul 2019 14:08:51 -0300
changeset 12954b7cb9ce40d01
parent 12953 d9699df941ac
child 12955 131ea7dcc225
macOS: fix atomics using deprecated functions instead of compiler intrinsics, when SDL is built with the Xcode project.
include/SDL_config_macosx.h
     1.1 --- a/include/SDL_config_macosx.h	Thu Jul 25 15:21:44 2019 -0700
     1.2 +++ b/include/SDL_config_macosx.h	Sat Jul 27 14:08:51 2019 -0300
     1.3 @@ -130,6 +130,8 @@
     1.4  #define HAVE_SYSCONF    1
     1.5  #define HAVE_SYSCTLBYNAME 1
     1.6  
     1.7 +#define HAVE_GCC_ATOMICS 1
     1.8 +
     1.9  /* Enable various audio drivers */
    1.10  #define SDL_AUDIO_DRIVER_COREAUDIO  1
    1.11  #define SDL_AUDIO_DRIVER_DISK   1