Commit 846d008036a526bc0fa9b0b073f418336dc3f228

Sam Lantinga 2017-11-11T16:20:00

Only include Intel intrinsics header on x86 and x64

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/include/SDL_cpuinfo.h b/include/SDL_cpuinfo.h
index 19a88de..1fde4e6 100644
--- a/include/SDL_cpuinfo.h
+++ b/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++ */