(svn r4875) - Fix: %ll don't work with mingw (msvrct.dll problem)
authorglx
Mon, 15 May 2006 22:32:27 +0000
changeset 3851 9ad2f4ec0ac3
parent 3850 cc4a567b93e3
child 3852 2d4f76d380df
(svn r4875) - Fix: %ll don't work with mingw (msvrct.dll problem)
debug.h
--- a/debug.h	Mon May 15 21:13:16 2006 +0000
+++ b/debug.h	Mon May 15 22:32:27 2006 +0000
@@ -26,8 +26,8 @@
 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"