mirror of
https://github.com/yawut/SDL.git
synced 2026-07-28 14:09:05 -05:00
Use an actual #error instead of a bogus symbol if there's no spinlock support.
This commit is contained in:
parent
b5688aca8a
commit
62cdeb1783
|
|
@ -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…
Reference in New Issue
Block a user