Commit bec783571b1e8ed0f272c3fa6327d4f88efb49b4

Sam Lantinga 2021-08-06T14:20:55

Better fix for compiling using clang on Windows This fixes https://github.com/libsdl-org/SDL/issues/4533

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/audio/SDL_audiocvt.c b/src/audio/SDL_audiocvt.c
index aec6766..f422b2b 100644
--- a/src/audio/SDL_audiocvt.c
+++ b/src/audio/SDL_audiocvt.c
@@ -47,7 +47,7 @@
 #define HAVE_AVX_INTRINSICS 1
 #endif
 #if defined __clang__
-# if (__clang_major__ < 5) || !defined(__AVX__)
+# if (__clang_major__ < 5) || defined(_MSC_VER) || defined(__SCE__)
 #   undef HAVE_AVX_INTRINSICS
 # endif
 #elif defined __GNUC__