From: Thomas Debesse Date: Tue, 14 Jan 2020 10:01:58 +0000 (+0100) Subject: tools/quake2: use same strupr other tools use X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=3f69a954114fbc26f9ca78ea5cb5ada24eedfa85;p=xonotic%2Fnetradiant.git tools/quake2: use same strupr other tools use --- diff --git a/tools/quake2/common/cmdlib.c b/tools/quake2/common/cmdlib.c index 506d7a2f..0b65ddaa 100644 --- a/tools/quake2/common/cmdlib.c +++ b/tools/quake2/common/cmdlib.c @@ -490,23 +490,19 @@ int Q_strcasecmp( const char *s1, const char *s2 ){ return Q_strncasecmp( s1, s2, 99999 ); } - -// NOTE TTimo when switching to Multithread DLL (Release/Debug) in the config -// started getting warnings about that function, prolly a duplicate with the runtime function -// maybe we still need to have it in linux builds -/* - char *strupr (char *start) - { - char *in; - in = start; - while (*in) - { - *in = toupper(*in); - in++; - } - return start; - } - */ +#if !GDEF_OS_WINDOWS +char *strupr (char *start) +{ + char *in; + in = start; + while (*in) + { + *in = toupper(*in); + in++; + } + return start; +} +#endif char *strlower( char *start ){ char *in;