浏览代码

Don't redefine __SSE__ and related macros if they're already defined

Sam Lantinga 6 年之前
父节点
当前提交
53a6196b32
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      include/SDL_cpuinfo.h

+ 8 - 0
include/SDL_cpuinfo.h

@@ -41,11 +41,19 @@
 #else
 #include <intrin.h>
 #ifndef _WIN64
+#ifndef __MMX__
 #define __MMX__
+#endif
+#ifndef __3dNOW__
 #define __3dNOW__
 #endif
+#endif
+#ifndef __SSE__
 #define __SSE__
+#endif
+#ifndef __SSE2__
 #define __SSE2__
+#endif
 #endif /* __clang__ */
 #elif defined(__MINGW64_VERSION_MAJOR)
 #include <intrin.h>