mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-02-20 18:42:34 +00:00
Avoid warnings about inline with gcc -pedantic
This commit is contained in:
parent
8e4c3039d6
commit
06e87abc90
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue