Commit 6fcfc35b authored by Ryan C. Gordon's avatar Ryan C. Gordon

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

parent f369e4fa
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment