cpuinfo: more patching for Android. Legacy platform targets are a pain.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 17 Nov 2016 16:10:32 -0500
changeset 1062735fe16a7960a
parent 10626 04035f36048e
child 10628 353f87de7efd
cpuinfo: more patching for Android. Legacy platform targets are a pain.
src/cpuinfo/SDL_cpuinfo.c
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Thu Nov 17 16:04:00 2016 -0500
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Thu Nov 17 16:10:32 2016 -0500
     1.3 @@ -51,7 +51,13 @@
     1.4  #endif
     1.5  
     1.6  #if (defined(__LINUX__) || defined(__ANDROID__)) && defined(__ARM_ARCH)
     1.7 -#include <asm/hwcap.h>
     1.8 +/*#include <asm/hwcap.h>*/
     1.9 +#ifndef AT_HWCAP
    1.10 +#define AT_HWCAP 16
    1.11 +#endif
    1.12 +#ifndef HWCAP_NEON
    1.13 +#define HWCAP_NEON (1 << 12)
    1.14 +#endif
    1.15  #if defined HAVE_GETAUXVAL
    1.16  #include <sys/auxv.h>
    1.17  #else