From bac751079212f9bba8743a399113b922240b7385 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 29 Mar 2013 21:13:16 -0400 Subject: [PATCH] Fixed compiler warnings with SDL_FORCE_INLINE on gcc2. (Thanks, Axel!) Fixes Bugzilla #1770. --- include/begin_code.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/begin_code.h b/include/begin_code.h index 61b8250d1..f0e111ad4 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__