From 0b33a1188b2631ea683f23a967e97ca1a98abbe8 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 17 Nov 2016 16:10:32 -0500 Subject: [PATCH] cpuinfo: more patching for Android. Legacy platform targets are a pain. --- src/cpuinfo/SDL_cpuinfo.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/cpuinfo/SDL_cpuinfo.c b/src/cpuinfo/SDL_cpuinfo.c index b241cb51b..c791baa86 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 +/*#include */ +#ifndef AT_HWCAP +#define AT_HWCAP 16 +#endif +#ifndef HWCAP_NEON +#define HWCAP_NEON (1 << 12) +#endif #if defined HAVE_GETAUXVAL #include #else