mirror of
https://github.com/ioquake/jedi-academy.git
synced 2024-11-25 13:41:34 +00:00
make inlines static inline
This commit is contained in:
parent
dc634d39db
commit
59010a333c
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue