src/atomic/SDL_spinlock.c
changeset 5069 fd125217f00c
parent 5028 fffb33ae85e8
child 5071 55ff76cdbbb8
     1.1 --- a/src/atomic/SDL_spinlock.c	Fri Jan 21 21:35:43 2011 -0800
     1.2 +++ b/src/atomic/SDL_spinlock.c	Fri Jan 21 21:42:04 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_ATOMICS)
     1.8 +#elif 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__)