From a865a256007d547694be730571c16f8681e21760 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 18 Sep 2011 02:55:45 -0400 Subject: [PATCH] Use an actual #error instead of a bogus symbol if there's no spinlock support. --- src/atomic/SDL_spinlock.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/atomic/SDL_spinlock.c b/src/atomic/SDL_spinlock.c index 093554774..0d6b3fb30 100644 --- a/src/atomic/SDL_spinlock.c +++ b/src/atomic/SDL_spinlock.c @@ -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 }