From 59010a333c64d7a50e56c729e3dddc02607c4187 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Fri, 26 Apr 2013 04:39:52 +1000 Subject: [PATCH] make inlines static inline --- codemp/game/q_shared.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/codemp/game/q_shared.h b/codemp/game/q_shared.h index b3d7b77..328d0dc 100644 --- a/codemp/game/q_shared.h +++ b/codemp/game/q_shared.h @@ -1753,11 +1753,11 @@ char *Q_strrchr( const char* string, int c ); // NON-portable (but faster) versions #ifdef _WIN32 -inline int Q_strnicmp (const char *s1, const char *s2, int n) { return strnicmp(s1, s2, n); } -inline int Q_strcmpi (const char *s1, const char *s2) { return strcmpi(s1, s2); } +static inline int Q_strnicmp (const char *s1, const char *s2, int n) { return strnicmp(s1, s2, n); } +static inline int Q_strcmpi (const char *s1, const char *s2) { return strcmpi(s1, s2); } #else -inline int Q_strnicmp (const char *s1, const char *s2, int n) { return strncasecmp(s1, s2, n); } -inline int Q_strcmpi (const char *s1, const char *s2) { return strcasecmp(s1, s2); } +static inline int Q_strnicmp (const char *s1, const char *s2, int n) { return strncasecmp(s1, s2, n); } +static inline int Q_strcmpi (const char *s1, const char *s2) { return strcasecmp(s1, s2); } #endif // buffer size safe library replacements