Browse Source

atomic: Support compiling on ARMv3

Cameron Cawley 5 years ago
parent
commit
85aabec27e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/atomic/SDL_spinlock.c

+ 2 - 1
src/atomic/SDL_spinlock.c

@@ -79,7 +79,8 @@ SDL_AtomicTryLock(SDL_SpinLock *lock)
     return (__sync_lock_test_and_set(lock, 1) == 0);
 
 #elif defined(__GNUC__) && defined(__arm__) && \
-        (defined(__ARM_ARCH_4__) || defined(__ARM_ARCH_4T__) || \
+        (defined(__ARM_ARCH_3__) || defined(__ARM_ARCH_3M__) || \
+         defined(__ARM_ARCH_4__) || defined(__ARM_ARCH_4T__) || \
          defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5TE__) || \
          defined(__ARM_ARCH_5TEJ__))
     int result;