make inlines static inline

This commit is contained in:
Jonathan Gray 2013-04-26 04:39:52 +10:00
parent dc634d39db
commit 59010a333c

View file

@ -1753,11 +1753,11 @@ char *Q_strrchr( const char* string, int c );
// NON-portable (but faster) versions // NON-portable (but faster) versions
#ifdef _WIN32 #ifdef _WIN32
inline int Q_strnicmp (const char *s1, const char *s2, int n) { return strnicmp(s1, s2, n); } static 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_strcmpi (const char *s1, const char *s2) { return strcmpi(s1, s2); }
#else #else
inline int Q_strnicmp (const char *s1, const char *s2, int n) { return strncasecmp(s1, s2, n); } static 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_strcmpi (const char *s1, const char *s2) { return strcasecmp(s1, s2); }
#endif #endif
// buffer size safe library replacements // buffer size safe library replacements