瀏覽代碼

Better fix for compiling using clang on Windows

This fixes https://github.com/libsdl-org/SDL/issues/4533
Sam Lantinga 4 年之前
父節點
當前提交
bec783571b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/audio/SDL_audiocvt.c

+ 1 - 1
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__