summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-01 06:02:43 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-01 06:02:43 +0000
commitb312e82a6f660481c7c43b695452f6bcc0917c27 (patch)
tree21b484a4ef61075ae18c54a7bcb299ffe8c72746 /src/common
parent9a2364406f6786bb96f13f7509c825e93e074ea9 (diff)
downloadhercules-b312e82a6f660481c7c43b695452f6bcc0917c27.tar.gz
hercules-b312e82a6f660481c7c43b695452f6bcc0917c27.tar.bz2
hercules-b312e82a6f660481c7c43b695452f6bcc0917c27.tar.xz
hercules-b312e82a6f660481c7c43b695452f6bcc0917c27.zip
Asssuming only __WIN32 (VC++) doesn't have strtok_r.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5839 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common')
-rw-r--r--src/common/strlib.c4
-rw-r--r--src/common/strlib.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/common/strlib.c b/src/common/strlib.c
index c2c2ae1ac..94f815839 100644
--- a/src/common/strlib.c
+++ b/src/common/strlib.c
@@ -137,8 +137,8 @@ char *trim(char *str, const char *delim)
return str;
}
-#if !defined(HAVE_mit_thread) && !defined(HAVE_STRTOK_R)
-char *athena_strtok_r(char *s1, const char *s2, char **lasts)
+#ifdef __WIN32
+char *_strtok_r(char *s1, const char *s2, char **lasts)
{
char *ret;
diff --git a/src/common/strlib.h b/src/common/strlib.h
index 7eb167057..09eac0048 100644
--- a/src/common/strlib.h
+++ b/src/common/strlib.h
@@ -11,9 +11,9 @@ char* jstrescape (char* pt);
char* jstrescapecpy (char* pt,char* spt);
int jmemescapecpy (char* pt,char* spt, int size);
-#if !defined(HAVE_mit_thread) && !defined(HAVE_STRTOK_R)
-#define strtok_r(s,delim,save_ptr) athena_strtok_r((s),(delim),(save_ptr))
-char *athena_strtok_r(char *s1, const char *s2, char **lasts);
+#ifdef __WIN32
+#define strtok_r(s,delim,save_ptr) _strtok_r((s),(delim),(save_ptr))
+char *_strtok_r(char *s1, const char *s2, char **lasts);
#endif
// custom functions