From 463bf5c2d84b72f3afd94b36adfc6d4471825696 Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Sun, 27 Oct 2019 14:52:09 +0100 Subject: [PATCH] Android: fix compilation error of SDL_cpuinfo.c on android-r13b (bug 4365) --- src/cpuinfo/SDL_cpuinfo.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cpuinfo/SDL_cpuinfo.c b/src/cpuinfo/SDL_cpuinfo.c index 1d14420b4..8412b52de 100644 --- a/src/cpuinfo/SDL_cpuinfo.c +++ b/src/cpuinfo/SDL_cpuinfo.c @@ -67,6 +67,13 @@ #ifndef AT_HWCAP #define AT_HWCAP 16 #endif +#ifndef AT_PLATFORM +#define AT_PLATFORM 15 +#endif +/* Prevent compilation error when including elf.h would also try to define AT_* as an enum */ +#ifndef AT_NULL +#define AT_NULL 0 +#endif #ifndef HWCAP_NEON #define HWCAP_NEON (1 << 12) #endif