diff options
author | Sam Lantinga <slouken@libsdl.org> | 2019-04-23 16:57:34 -0700 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2019-04-23 16:57:34 -0700 |
commit | 077fda212ad732161ddeee2ac81ab4cf80f617f0 (patch) | |
tree | 91465c1434992f83c2899ffb7b3fe62c8e84018c | |
parent | e86af508221b81e8ebf158e83f1e2c4fd280265e (diff) |
Don't redefine __SSE__ and related macros if they're already defined
-rw-r--r-- | include/SDL_cpuinfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/SDL_cpuinfo.h b/include/SDL_cpuinfo.h index c24c9642b8..07ac196c08 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> |