summaryrefslogtreecommitdiff
path: root/rts/PosixSource.h
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-06-17 21:49:18 +0100
committerIan Lynagh <igloo@earth.li>2012-06-17 21:49:18 +0100
commit7c987d10f012e2f175344fa2c28b36f073bda293 (patch)
treebf02e1d110e3eca4e373a0b0c98a158688c0352e /rts/PosixSource.h
parentd0bfa810f6a5f92d672cf3822494701cb5aa3ac9 (diff)
downloadhaskell-7c987d10f012e2f175344fa2c28b36f073bda293.tar.gz
Switch to using the 'rubenvb' mingw builds
Diffstat (limited to 'rts/PosixSource.h')
-rw-r--r--rts/PosixSource.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/rts/PosixSource.h b/rts/PosixSource.h
index 56e08abb0e..da7b69e85d 100644
--- a/rts/PosixSource.h
+++ b/rts/PosixSource.h
@@ -25,6 +25,10 @@
// On both GNU libc and FreeBSD, _ISOC99_SOURCE is implied by
// _XOPEN_SOURCE==600, but on Solaris it is an error to omit it.
#define _ISOC99_SOURCE
+// Defining __USE_MINGW_ANSI_STDIO is the most portable way to tell
+// mingw that we want to use the standard %lld style format specifiers,
+// rather than the Windows %I64d style
+#define __USE_MINGW_ANSI_STDIO 1
#endif
#if defined(darwin_HOST_OS)