Avoid warnings about inline with gcc -pedantic

This commit is contained in:
Marcus Sundberg 2000-01-09 02:12:25 +00:00
parent 8e4c3039d6
commit 06e87abc90

View file

@ -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