mirror of
https://github.com/yawut/SDL.git
synced 2026-08-26 18:55:32 -05:00
Use an actual #error instead of a bogus symbol if there's no spinlock support.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user