Fixed gcc warnings for apps using SDL headers with -Wundef flag.

Fixes Bugzilla #1216.

Thanks to Dimitris Zenios for the patch!
This commit is contained in:
Ryan C. Gordon 2011-06-06 12:20:04 -04:00
parent 8b1cf3db98
commit c3ab04563b
2 changed files with 3 additions and 3 deletions

View file

@ -140,7 +140,7 @@ void _ReadWriteBarrier(void);
/* Platform specific optimized versions of the atomic functions,
* you can disable these by defining SDL_DISABLE_ATOMIC_INLINE
*/
#if SDL_ATOMIC_DISABLED
#if defined(SDL_ATOMIC_DISABLED) && SDL_ATOMIC_DISABLED
#define SDL_DISABLE_ATOMIC_INLINE
#endif
#ifndef SDL_DISABLE_ATOMIC_INLINE