Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Let iOS use OSAtomicCompareAndSwap32Barrier() if nothing else is avai…
Browse files Browse the repository at this point in the history
…lable.
  • Loading branch information
icculus committed Oct 16, 2011
1 parent 92d5878 commit c97fd18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atomic/SDL_spinlock.c
Expand Up @@ -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);

Expand Down

0 comments on commit c97fd18

Please sign in to comment.