diff options
author | Ryan C. Gordon <icculus@icculus.org> | 2013-03-29 21:13:16 -0400 |
---|---|---|
committer | Ryan C. Gordon <icculus@icculus.org> | 2013-03-29 21:13:16 -0400 |
commit | a9eb1f14eaa83d43e2a1fcfacede3448b3b16c36 (patch) | |
tree | 121e52ae300fca274657631a5a6469744d589f86 /include | |
parent | 85198ba1f3f12a6c9717e0b5947e60ec7e45b158 (diff) |
Fixed compiler warnings with SDL_FORCE_INLINE on gcc2. (Thanks, Axel!)
Fixes Bugzilla #1770.
Diffstat (limited to 'include')
-rw-r--r-- | include/begin_code.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/begin_code.h b/include/begin_code.h index 61b8250d16..f0e111ad4c 100644 --- a/include/begin_code.h +++ b/include/begin_code.h @@ -130,7 +130,7 @@ #if defined(_MSC_VER) #define SDL_FORCE_INLINE __forceinline -#elif defined(__GNUC__) || defined(__clang__) +#elif ( (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) ) #define SDL_FORCE_INLINE __attribute__((always_inline)) static inline #else #define SDL_FORCE_INLINE static __inline__ |