Commit 53a6196b32f134c9dc9ff62fdfb3db45175bb094

Sam Lantinga 2019-04-23T16:57:34

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

diff --git a/include/SDL_cpuinfo.h b/include/SDL_cpuinfo.h
index c24c964..07ac196 100644
--- a/include/SDL_cpuinfo.h
+++ b/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>