mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-17 14:47:19 +01:00
cpuinfo: Remove incorrect #warning when building for non-ARM architectures.
This commit is contained in:
parent
b7df26037b
commit
6dffc5d461
@ -326,8 +326,10 @@ CPU_haveAltiVec(void)
|
|||||||
return altivec;
|
return altivec;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __linux__
|
#if !defined(__ARM_ARCH)
|
||||||
|
static SDL_bool CPU_haveARMSIMD(void) { return 0; }
|
||||||
|
|
||||||
|
#elif defined(__linux__)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
@ -359,14 +361,12 @@ CPU_haveARMSIMD(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
static SDL_bool
|
static SDL_bool
|
||||||
CPU_haveARMSIMD(void)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(__LINUX__) || defined(__ANDROID__)) && defined(__ARM_ARCH) && !defined(HAVE_GETAUXVAL)
|
#if (defined(__LINUX__) || defined(__ANDROID__)) && defined(__ARM_ARCH) && !defined(HAVE_GETAUXVAL)
|
||||||
|
Loading…
Reference in New Issue
Block a user