# HG changeset patch # User Dimitris Zenios # Date 1307276981 -10800 # Node ID 3e53ca5050e871cdeedad35de6b97d47b121a7e2 # Parent 8f0abb6ef37da06e2fb6e52c51d2ef9ed9ef388c Fixed gcc warnings when -Wundef is on diff -r 8f0abb6ef37d -r 3e53ca5050e8 include/SDL_assert.h --- a/include/SDL_assert.h Sat Jun 04 15:26:02 2011 -0400 +++ b/include/SDL_assert.h Sun Jun 05 15:29:41 2011 +0300 @@ -53,7 +53,7 @@ /* Don't include intrin.h here because it contains C++ code */ extern void __cdecl __debugbreak(void); #define SDL_TriggerBreakpoint() __debugbreak() -#elif (defined(__GNUC__) && ((__i386__) || (__x86_64__))) +#elif (defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))) #define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" ) #elif defined(HAVE_SIGNAL_H) #include @@ -63,7 +63,7 @@ #define SDL_TriggerBreakpoint() #endif -#if (__STDC_VERSION__ >= 199901L) /* C99 supports __func__ as a standard. */ +#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 supports __func__ as a standard. */ # define SDL_FUNCTION __func__ #elif ((__GNUC__ >= 2) || defined(_MSC_VER)) # define SDL_FUNCTION __FUNCTION__ diff -r 8f0abb6ef37d -r 3e53ca5050e8 include/SDL_atomic.h --- a/include/SDL_atomic.h Sat Jun 04 15:26:02 2011 -0400 +++ b/include/SDL_atomic.h Sun Jun 05 15:29:41 2011 +0300 @@ -140,7 +140,7 @@ /* 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