summaryrefslogtreecommitdiff
path: root/src/mysql
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/mysql
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/mysql')
-rw-r--r--src/mysql/my_global.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mysql/my_global.h b/src/mysql/my_global.h
index 6c3937467..0fbb96f59 100644
--- a/src/mysql/my_global.h
+++ b/src/mysql/my_global.h
@@ -658,7 +658,11 @@ typedef SOCKET_SIZE_TYPE size_socket;
#define SET_STACK_SIZE(X) /* Not needed on real machines */
#if !defined(HAVE_mit_thread) && !defined(HAVE_STRTOK_R)
-#include "../common/strlib.h"
+ #ifdef __WIN32
+ #include "../common/strlib.h"
+ #else
+ #define strtok_r(A,B,C) strtok((A),(B))
+ #endif
#endif
/* Remove some things that mit_thread break or doesn't support */