Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Let iOS use OSAtomicCompareAndSwap32Barrier() if nothing else is avai…

…lable.
  • Loading branch information
icculus committed Oct 16, 2011
1 parent 92d5878 commit c97fd1837919a1304e1c55a483e996720e259477
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/atomic/SDL_spinlock.c
@@ -81,7 +81,7 @@ SDL_AtomicTryLock(SDL_SpinLock *lock)
: "=r" (result) : "r" (lock), "0" (1) : "cc", "memory");
return (result == 0);

#elif defined(__MACOSX__)
#elif defined(__MACOSX__) || defined(__IPHONEOS__)
/* Maybe used for PowerPC, but the Intel asm or gcc atomics are favored. */
return OSAtomicCompareAndSwap32Barrier(0, 1, lock);

0 comments on commit c97fd18

Please sign in to comment.