From 91ce7eb52919ade33fe838a109e20e99bfe38adb Mon Sep 17 00:00:00 2001 From: ultramage Date: Mon, 15 Feb 2010 11:54:21 +0000 Subject: Added visual studio equivalent of libc's strtoull() - name redefine for newer VS versions, custom implementation for VS6 (I hope it works). This should fix the compilation error from r14242 (bugreport:4059). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14245 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/cbasetypes.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/common/cbasetypes.h') diff --git a/src/common/cbasetypes.h b/src/common/cbasetypes.h index 5582ca26d..b377d6ef0 100644 --- a/src/common/cbasetypes.h +++ b/src/common/cbasetypes.h @@ -234,6 +234,9 @@ typedef int32 intptr; #define strncmpi strncasecmp #define strnicmp strncasecmp #endif +#if defined(_MSC_VER) && _MSC_VER > 1200 +#define strtoull _strtoui64 +#endif // keyword replacement in windows #ifdef _WIN32 -- cgit v1.2.3-60-g2f50