Use an actual #error instead of a bogus symbol if there's no spinlock support.
This commit is contained in:
parent
f369e4fa7c
commit
6fcfc35b50
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue