Don't disable clang avx instrinsics on win32 if __AVX__ is defined.

C.f.: https://github.com/libsdl-org/SDL/issues/4533
This commit is contained in:
Ozkan Sezer 2021-08-11 12:55:50 +03:00 committed by Sam Lantinga
parent ae7ee2a59c
commit 44a76710d1

View file

@ -47,7 +47,10 @@
#define HAVE_AVX_INTRINSICS 1 #define HAVE_AVX_INTRINSICS 1
#endif #endif
#if defined __clang__ #if defined __clang__
# if (__clang_major__ < 5) || defined(_MSC_VER) || defined(__SCE__) # if (__clang_major__ < 5)
# undef HAVE_AVX_INTRINSICS
# endif
# if (defined(_MSC_VER) || defined(__SCE__)) && !defined(__AVX__)
# undef HAVE_AVX_INTRINSICS # undef HAVE_AVX_INTRINSICS
# endif # endif
#elif defined __GNUC__ #elif defined __GNUC__