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

Commit

Permalink
Use an actual #error instead of a bogus symbol if there's no spinlock…
Browse files Browse the repository at this point in the history
… support.
  • Loading branch information
icculus committed Sep 18, 2011
1 parent 8a7405e commit a865a25
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/atomic/SDL_spinlock.c
Expand Up @@ -81,9 +81,8 @@ SDL_AtomicTryLock(SDL_SpinLock *lock)
/* pthread instructions */
return (pthread_spin_trylock(lock) == 0);
#else
/* Need CPU instructions for spinlock here! */
__need_spinlock_implementation__

#error Please implement for your platform.
return SDL_FALSE;
#endif
}

Expand Down

0 comments on commit a865a25

Please sign in to comment.