summaryrefslogtreecommitdiff
path: root/src/common/strlib.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-09 00:46:55 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-09 00:46:55 +0000
commitcc716ca00420c23bdb02831f8fc205d4588e1f75 (patch)
treeb7f3182f6e59f705eff9ee14ad35075fa52acf80 /src/common/strlib.c
parent4ae1b3c2a335d95a5425ecf5c19c5be2ab21e13a (diff)
downloadhercules-cc716ca00420c23bdb02831f8fc205d4588e1f75.tar.gz
hercules-cc716ca00420c23bdb02831f8fc205d4588e1f75.tar.bz2
hercules-cc716ca00420c23bdb02831f8fc205d4588e1f75.tar.xz
hercules-cc716ca00420c23bdb02831f8fc205d4588e1f75.zip
* Played around with MinGW a bit today...
- adjusted code so that it handles mingw-specific compatibility problems - adjusted the makefile, mingw is not a subset of cygwin * As an experiment Corrected many /W4 warnings on the txt login server git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10192 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/strlib.c')
-rw-r--r--src/common/strlib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/strlib.c b/src/common/strlib.c
index 0ad0575f7..bd49e7b61 100644
--- a/src/common/strlib.c
+++ b/src/common/strlib.c
@@ -4,7 +4,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <ctype.h>
#include "strlib.h"
#include "../common/cbasetypes.h"
@@ -198,7 +197,7 @@ char* _strtok_r(char *s1, const char *s2, char **lasts)
}
#endif
-#if !defined(WIN32) || (defined(_MSC_VER) && _MSC_VER < 1400)
+#if !(defined(WIN32) && defined(_MSC_VER) && _MSC_VER >= 1400)
/* Find the length of STRING, but scan at most MAXLEN characters.
If no '\0' terminator is found in that many characters, return MAXLEN. */
size_t strnlen (const char* string, size_t maxlen)