src/atomic/SDL_spinlock.c
changeset 5071 55ff76cdbbb8
parent 5069 fd125217f00c
child 5073 1e94e68525d5
     1.1 --- a/src/atomic/SDL_spinlock.c	Fri Jan 21 21:43:56 2011 -0800
     1.2 +++ b/src/atomic/SDL_spinlock.c	Fri Jan 21 21:45:55 2011 -0800
     1.3 @@ -36,7 +36,7 @@
     1.4  #elif defined(__MACOSX__)
     1.5      return OSAtomicCompareAndSwap32Barrier(0, 1, lock);
     1.6  
     1.7 -#elif defined(HAVE_GCC_SYNC_LOCK_TEST_AND_SET)
     1.8 +#elif defined(HAVE_GCC_ATOMICS) || defined(HAVE_GCC_SYNC_LOCK_TEST_AND_SET)
     1.9      return (__sync_lock_test_and_set(lock, 1) == 0);
    1.10  
    1.11  #elif defined(__GNUC__) && defined(__arm__) && defined(__ARM_ARCH_5__)