src/atomic/SDL_spinlock.c
changeset 5998 e9b9ef14aef4
parent 5957 9a2b091abb2c
child 5999 0e3fd8178e1d
     1.1 --- a/src/atomic/SDL_spinlock.c	Fri Oct 14 20:47:53 2011 -0400
     1.2 +++ b/src/atomic/SDL_spinlock.c	Sun Oct 16 03:02:46 2011 -0400
     1.3 @@ -81,7 +81,7 @@
     1.4          : "=r" (result) : "r" (lock), "0" (1) : "cc", "memory");
     1.5  	return (result == 0);
     1.6  
     1.7 -#elif defined(__MACOSX__)
     1.8 +#elif defined(__MACOSX__) || defined(__IPHONEOS__)
     1.9      /* Maybe used for PowerPC, but the Intel asm or gcc atomics are favored. */
    1.10      return OSAtomicCompareAndSwap32Barrier(0, 1, lock);
    1.11