Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

… support.
  • Loading branch information
icculus committed Sep 18, 2011
1 parent 8a7405e commit a865a256007d547694be730571c16f8681e21760
Showing with 2 additions and 3 deletions.
  1. +2 −3 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
}

0 comments on commit a865a25

Please sign in to comment.