From 9434d3988dc757b5c2d143430344aae43eb4123e Mon Sep 17 00:00:00 2001 From: glx Date: Mon, 15 May 2006 22:32:27 +0000 Subject: (svn r4875) - Fix: %ll don't work with mingw (msvrct.dll problem) --- debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debug.h b/debug.h index 9721fb882..54b0d12b6 100644 --- a/debug.h +++ b/debug.h @@ -26,8 +26,8 @@ void CDECL debug(const char *s, ...); void SetDebugString(const char *s); const char *GetDebugString(void); -/* MSVC of course has to have a different syntax for long long *sigh* */ -#ifdef _MSC_VER +/* MSVCRT of course has to have a different syntax for long long *sigh* */ +#if defined(_MSC_VER) || defined(__MINGW32__) # define OTTD_PRINTF64 "I64" #else # define OTTD_PRINTF64 "ll" -- cgit v1.2.3-70-g09d2