Skip to content

Commit

Permalink
Rename strlower to strlwr for consistency with Windows API, make stru…
Browse files Browse the repository at this point in the history
…pr & strlwr defined on platforms other than Windows only

#138
  • Loading branch information
SamVanheer committed Mar 15, 2022
1 parent 8a6978a commit b5d34de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions utils/common/cmdlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ int Q_strcasecmp (char *s1, char *s2)
return Q_strncasecmp (s1, s2, 99999);
}


#ifndef WIN32
char *strupr (char *start)
{
char *in;
Expand All @@ -452,7 +452,7 @@ char *strupr (char *start)
return start;
}

char *strlower (char *start)
char* strlwr(char* start)
{
char *in;
in = start;
Expand All @@ -463,7 +463,7 @@ char *strlower (char *start)
}
return start;
}

#endif

/*
=============================================================================
Expand Down
5 changes: 4 additions & 1 deletion utils/common/cmdlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ extern int myargc;
extern char **myargv;

void COM_FixSlashes( char *pname );

#ifndef WIN32
char *strupr (char *in);
char *strlower (char *in);
char* strlwr(char* in);
#endif
int Q_strncasecmp (char *s1, char *s2, int n);
int Q_strcasecmp (char *s1, char *s2);
void Q_getwd (char *out);
Expand Down

0 comments on commit b5d34de

Please sign in to comment.