From b312e82a6f660481c7c43b695452f6bcc0917c27 Mon Sep 17 00:00:00 2001 From: Lance Date: Sat, 1 Apr 2006 06:02:43 +0000 Subject: 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 --- src/mysql/my_global.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mysql') 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 */ -- cgit v1.2.3-60-g2f50