From 3f69a954114fbc26f9ca78ea5cb5ada24eedfa85 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Tue, 14 Jan 2020 11:01:58 +0100 Subject: [PATCH] tools/quake2: use same strupr other tools use --- tools/quake2/common/cmdlib.c | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) 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; -- 2.39.2