]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
tools/quake2: use same strupr other tools use
authorThomas Debesse <dev@illwieckz.net>
Tue, 14 Jan 2020 10:01:58 +0000 (11:01 +0100)
committerThomas Debesse <dev@illwieckz.net>
Thu, 23 Jan 2020 18:21:39 +0000 (19:21 +0100)
tools/quake2/common/cmdlib.c

index 506d7a2f16f16c5c6300ac34de5458bab004808a..0b65ddaaeff9c6eb1db84dded47725ac49c09c74 100644 (file)
@@ -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;