From 53a6196b32f134c9dc9ff62fdfb3db45175bb094 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 23 Apr 2019 16:57:34 -0700 Subject: [PATCH] Don't redefine __SSE__ and related macros if they're already defined --- include/SDL_cpuinfo.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/SDL_cpuinfo.h b/include/SDL_cpuinfo.h index c24c9642b8075..07ac196c08741 100644 --- a/include/SDL_cpuinfo.h +++ b/include/SDL_cpuinfo.h @@ -41,11 +41,19 @@ #else #include #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