Use an actual #error instead of a bogus symbol if there's no spinlock support.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 18 Sep 2011 02:55:45 -0400
changeset 5956c7aebf1841ca
parent 5953 fecf71a834ed
child 5957 9a2b091abb2c
Use an actual #error instead of a bogus symbol if there's no spinlock support.
src/atomic/SDL_spinlock.c
     1.1 --- a/src/atomic/SDL_spinlock.c	Sun Sep 18 02:09:20 2011 -0400
     1.2 +++ b/src/atomic/SDL_spinlock.c	Sun Sep 18 02:55:45 2011 -0400
     1.3 @@ -81,9 +81,8 @@
     1.4      /* pthread instructions */
     1.5      return (pthread_spin_trylock(lock) == 0);
     1.6  #else	
     1.7 -    /* Need CPU instructions for spinlock here! */
     1.8 -    __need_spinlock_implementation__
     1.9 -	
    1.10 +#error Please implement for your platform.
    1.11 +    return SDL_FALSE;
    1.12  #endif
    1.13  }
    1.14