From 889780adced943eb3c0658f3fc5ff23cc52fd61e Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 2 Jan 2015 19:50:43 +0000 Subject: [PATCH] (svn r27109) -Fix (r27102): MinGW compilation --- src/stdafx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stdafx.h b/src/stdafx.h index 87270c6caf..d68605c196 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -266,6 +266,8 @@ #define strncasecmp strnicmp #endif + #define strtoull _strtoui64 + /* MSVC doesn't have these :( */ #define S_ISDIR(mode) (mode & S_IFDIR) #define S_ISREG(mode) (mode & S_IFREG) @@ -322,7 +324,6 @@ #define OTTD_PRINTF64 "%I64d" #define OTTD_PRINTFHEX64 "%I64x" #define PRINTF_SIZE "%Iu" - #define strtoull _strtoui64 #else #define OTTD_PRINTF64 "%lld" #define OTTD_PRINTFHEX64 "%llx"