cpuinfo: Remove incorrect #warning when building for non-ARM architectures.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 25 Oct 2019 00:07:30 -0400
changeset 1318720031279f4d4
parent 13186 9bf7f9ba2bf4
child 13188 0d6a584ace27
cpuinfo: Remove incorrect #warning when building for non-ARM architectures.
src/cpuinfo/SDL_cpuinfo.c
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Thu Oct 24 23:17:19 2019 -0400
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Fri Oct 25 00:07:30 2019 -0400
     1.3 @@ -326,8 +326,10 @@
     1.4      return altivec;
     1.5  }
     1.6  
     1.7 -#ifdef __linux__
     1.8 +#if !defined(__ARM_ARCH)
     1.9 +static SDL_bool CPU_haveARMSIMD(void) { return 0; }
    1.10  
    1.11 +#elif defined(__linux__)
    1.12  #include <unistd.h>
    1.13  #include <sys/types.h>
    1.14  #include <sys/stat.h>
    1.15 @@ -359,14 +361,12 @@
    1.16  }
    1.17  
    1.18  #else
    1.19 -
    1.20  static SDL_bool
    1.21  CPU_haveARMSIMD(void)
    1.22  {
    1.23 -#warning SDL_HasARMSIMD is not implemented for this ARM platform. Write me.
    1.24 +    #warning SDL_HasARMSIMD is not implemented for this ARM platform. Write me.
    1.25      return 0;
    1.26  }
    1.27 -
    1.28  #endif
    1.29  
    1.30  #if (defined(__LINUX__) || defined(__ANDROID__)) && defined(__ARM_ARCH) && !defined(HAVE_GETAUXVAL)