Commit 0b33a1188b2631ea683f23a967e97ca1a98abbe8

Ryan C. Gordon 2016-11-17T16:10:32

cpuinfo: more patching for Android. Legacy platform targets are a pain.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/cpuinfo/SDL_cpuinfo.c b/src/cpuinfo/SDL_cpuinfo.c
index b241cb5..c791baa 100644
--- a/src/cpuinfo/SDL_cpuinfo.c
+++ b/src/cpuinfo/SDL_cpuinfo.c
@@ -51,7 +51,13 @@
 #endif
 
 #if (defined(__LINUX__) || defined(__ANDROID__)) && defined(__ARM_ARCH)
-#include <asm/hwcap.h>
+/*#include <asm/hwcap.h>*/
+#ifndef AT_HWCAP
+#define AT_HWCAP 16
+#endif
+#ifndef HWCAP_NEON
+#define HWCAP_NEON (1 << 12)
+#endif
 #if defined HAVE_GETAUXVAL
 #include <sys/auxv.h>
 #else