diff options
author | Ryan C. Gordon <icculus@icculus.org> | 2019-10-25 00:07:30 -0400 |
---|---|---|
committer | Ryan C. Gordon <icculus@icculus.org> | 2019-10-25 00:07:30 -0400 |
commit | d659e11a2723e00591c3ea43307c5f69a9e125de (patch) | |
tree | c77a0cd2101ba85db835309a4212efa25dc1f45b | |
parent | e4bba9687d41788df6154a631613a10a63e771d5 (diff) |
cpuinfo: Remove incorrect #warning when building for non-ARM architectures.
-rw-r--r-- | src/cpuinfo/SDL_cpuinfo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cpuinfo/SDL_cpuinfo.c b/src/cpuinfo/SDL_cpuinfo.c index 5f86acff98..1d14420b40 100644 --- a/src/cpuinfo/SDL_cpuinfo.c +++ b/src/cpuinfo/SDL_cpuinfo.c @@ -326,8 +326,10 @@ CPU_haveAltiVec(void) return altivec; } -#ifdef __linux__ +#if !defined(__ARM_ARCH) +static SDL_bool CPU_haveARMSIMD(void) { return 0; } +#elif defined(__linux__) #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> @@ -359,14 +361,12 @@ CPU_haveARMSIMD(void) } #else - static SDL_bool CPU_haveARMSIMD(void) { -#warning SDL_HasARMSIMD is not implemented for this ARM platform. Write me. + #warning SDL_HasARMSIMD is not implemented for this ARM platform. Write me. return 0; } - #endif #if (defined(__LINUX__) || defined(__ANDROID__)) && defined(__ARM_ARCH) && !defined(HAVE_GETAUXVAL) |