From 06e87abc90e1e53d249a1281f5a13a7dd535ea2a Mon Sep 17 00:00:00 2001 From: Marcus Sundberg Date: Sun, 9 Jan 2000 02:12:25 +0000 Subject: [PATCH] Avoid warnings about inline with gcc -pedantic --- common/common_quakedef.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/common_quakedef.h b/common/common_quakedef.h index 1918cef..b715c75 100644 --- a/common/common_quakedef.h +++ b/common/common_quakedef.h @@ -87,6 +87,11 @@ void VID_UnlockBuffer (void); #define min(a,b) ((a) < (b) ? (a) : (b)) #endif +/* This fixes warnings when compiling with -pedantic */ +#if defined(__GNUC__) && !defined(inline) +# define inline __inline__ +#endif + /* Win32 have these underscored... */ #if !defined(HAVE_SNPRINTF) && defined(HAVE__SNPRINTF) # define snprintf _snprintf