tweak HAVE_IMMINTRIN_H in SDL_config_windows.h, add to SDL_config_macosx.h

This commit is contained in:
Ozkan Sezer 2021-07-27 17:10:24 +03:00
parent 2a53f8315a
commit e16fb60323
2 changed files with 11 additions and 1 deletions

View File

@ -137,6 +137,12 @@
#define HAVE_SYSCONF 1
#define HAVE_SYSCTLBYNAME 1
#if defined(__has_include) && (defined(__i386__) || defined(__x86_64))
# if __has_include(<immintrin.h>)
# define HAVE_IMMINTRIN_H 1
# endif
#endif
#define HAVE_GCC_ATOMICS 1
/* Enable various audio drivers */

View File

@ -85,8 +85,12 @@ typedef unsigned int uintptr_t;
#define HAVE_MMDEVICEAPI_H 1
#define HAVE_AUDIOCLIENT_H 1
#define HAVE_SENSORSAPI_H 1
#if defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)
#if (defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)) && (defined(_MSC_VER) && _MSC_VER >= 1600)
#define HAVE_IMMINTRIN_H 1
#elif defined(__has_include) && (defined(__i386__) || defined(__x86_64))
# if __has_include(<immintrin.h>)
# define HAVE_IMMINTRIN_H 1
# endif
#endif
/* This is disabled by default to avoid C runtime dependencies and manifest requirements */