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) ...@@ -81,9 +81,8 @@ SDL_AtomicTryLock(SDL_SpinLock *lock)
/* pthread instructions */ /* pthread instructions */
return (pthread_spin_trylock(lock) == 0); return (pthread_spin_trylock(lock) == 0);
#else #else
/* Need CPU instructions for spinlock here! */ #error Please implement for your platform.
__need_spinlock_implementation__ return SDL_FALSE;
#endif #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