Navigation Menu

Skip to content

Commit

Permalink
cpuinfo: more patching for Android. Legacy platform targets are a pain.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 17, 2016
1 parent a298e56 commit 0b33a11
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/cpuinfo/SDL_cpuinfo.c
Expand Up @@ -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
Expand Down

0 comments on commit 0b33a11

Please sign in to comment.