diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-30 06:16:08 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-30 06:16:08 +0000 |
commit | 2d33d82794559b83131b83528279ce898716c112 (patch) | |
tree | 0cf9f625341314a54010e027a9c01305de797c08 /src/common/strlib.c | |
parent | 5b5afa7bb6cad66880bbbeee26d0851f25f85d45 (diff) | |
download | hercules-2d33d82794559b83131b83528279ce898716c112.tar.gz hercules-2d33d82794559b83131b83528279ce898716c112.tar.bz2 hercules-2d33d82794559b83131b83528279ce898716c112.tar.xz hercules-2d33d82794559b83131b83528279ce898716c112.zip |
* Added all the missing defines for ctype.h functions and converted all the direct uses to the defines.
Ref: http://www.eathena.ws/board/index.php?showtopic=145235
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10091 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/strlib.c')
-rw-r--r-- | src/common/strlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/strlib.c b/src/common/strlib.c index ee37cb9ae..dd10d655e 100644 --- a/src/common/strlib.c +++ b/src/common/strlib.c @@ -150,7 +150,7 @@ const char *stristr(const char *haystack, const char *needle) } for ( ; *haystack; ++haystack ) { - if ( toupper(*haystack) == toupper(*needle) ) + if ( TOUPPER(*haystack) == TOUPPER(*needle) ) { /* * Matched starting char -- loop through remaining chars. @@ -158,7 +158,7 @@ const char *stristr(const char *haystack, const char *needle) const char *h, *n; for ( h = haystack, n = needle; *h && *n; ++h, ++n ) { - if ( toupper(*h) != toupper(*n) ) + if ( TOUPPER(*h) != TOUPPER(*n) ) { break; } |