Don't redefine __SSE__ and related macros if they're already defined
authorSam Lantinga <slouken@libsdl.org>
Tue, 23 Apr 2019 16:57:34 -0700
changeset 12719b9da55e54f98
parent 12718 31db2b7fd29f
child 12720 f926c8070a2a
Don't redefine __SSE__ and related macros if they're already defined
include/SDL_cpuinfo.h
     1.1 --- a/include/SDL_cpuinfo.h	Tue Apr 23 14:08:14 2019 -0700
     1.2 +++ b/include/SDL_cpuinfo.h	Tue Apr 23 16:57:34 2019 -0700
     1.3 @@ -41,11 +41,19 @@
     1.4  #else
     1.5  #include <intrin.h>
     1.6  #ifndef _WIN64
     1.7 +#ifndef __MMX__
     1.8  #define __MMX__
     1.9 +#endif
    1.10 +#ifndef __3dNOW__
    1.11  #define __3dNOW__
    1.12  #endif
    1.13 +#endif
    1.14 +#ifndef __SSE__
    1.15  #define __SSE__
    1.16 +#endif
    1.17 +#ifndef __SSE2__
    1.18  #define __SSE2__
    1.19 +#endif
    1.20  #endif /* __clang__ */
    1.21  #elif defined(__MINGW64_VERSION_MAJOR)
    1.22  #include <intrin.h>