Limit the compile error to the case where we actually define the memory barrier macro as the function
authorSam Lantinga <slouken@libsdl.org>
Sun, 30 Jun 2019 23:55:28 -0700
changeset 12915e8773976e7c6
parent 12912 12a6ba543f44
child 12916 119d21c68b62
Limit the compile error to the case where we actually define the memory barrier macro as the function
src/atomic/SDL_atomic.c
     1.1 --- a/src/atomic/SDL_atomic.c	Sun Jun 30 23:26:16 2019 -0700
     1.2 +++ b/src/atomic/SDL_atomic.c	Sun Jun 30 23:55:28 2019 -0700
     1.3 @@ -289,7 +289,7 @@
     1.4  #endif
     1.5  }
     1.6  
     1.7 -#ifdef __thumb__
     1.8 +#if defined(__thumb__) && (defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_5TE__))
     1.9  #error This file should be built in arm mode so the mcr instruction is available for memory barriers
    1.10  #endif
    1.11