Browse Source

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

Sam Lantinga 6 years ago
parent
commit
53a6196b32
1 changed files with 8 additions and 0 deletions
  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>