Browse Source

Only include Intel intrinsics header on x86 and x64

Sam Lantinga 7 years ago
parent
commit
846d008036
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/SDL_cpuinfo.h

+ 2 - 0
include/SDL_cpuinfo.h

@@ -59,8 +59,10 @@
 #ifdef __3dNOW__
 #include <mm3dnow.h>
 #endif
+#if defined(__i386__) || defined(__x86_64__)
 #include <immintrin.h>
 #endif
+#endif
 
 #include "begin_code.h"
 /* Set up for C function definitions, even when using C++ */