Sfoglia il codice sorgente

Only include Intel intrinsics header on x86 and x64

Sam Lantinga 8 anni fa
parent
commit
846d008036
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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++ */