Skip to content

Commit

Permalink
cpuinfo: Remove incorrect #warning when building for non-ARM architec…
Browse files Browse the repository at this point in the history
…tures.
  • Loading branch information
icculus committed Oct 25, 2019
1 parent b7df260 commit 6dffc5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cpuinfo/SDL_cpuinfo.c
Expand Up @@ -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>
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6dffc5d

Please sign in to comment.