summaryrefslogtreecommitdiff
path: root/rts/Stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/Stats.c')
-rw-r--r--rts/Stats.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/rts/Stats.c b/rts/Stats.c
index ea57f60e70..fb87a6d8e4 100644
--- a/rts/Stats.c
+++ b/rts/Stats.c
@@ -26,6 +26,16 @@
#include <string.h> // for memset
+#if defined(mingw32_HOST_OS)
+/* On Win64, if we say "printf" then gcc thinks we are going to use
+ MS format specifiers like %I64d rather than %llu */
+#define PRINTF gnu_printf
+#else
+/* However, on OS X, "gnu_printf" isn't recognised */
+#define PRINTF printf
+#endif
+
+
#if defined(THREADED_RTS)
// Protects all statistics below
Mutex stats_mutex;