Use an actual #error instead of a bogus symbol if there's no spinlock support.

This commit is contained in:
Ryan C. Gordon 2011-09-18 02:55:45 -04:00
parent f369e4fa7c
commit 6fcfc35b50

View file

@ -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
}