Skip to content

Commit

Permalink
Don't redefine __SSE__ and related macros if they're already defined
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Apr 23, 2019
1 parent f525253 commit 53a6196
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/SDL_cpuinfo.h
Expand Up @@ -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>
Expand Down

0 comments on commit 53a6196

Please sign in to comment.