Explorar el Código

Only include Intel intrinsics header on x86 and x64

Sam Lantinga hace 8 años
padre
commit
846d008036
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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++ */