aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/go-system.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/go/go-system.h')
-rw-r--r--gcc/go/go-system.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/go/go-system.h b/gcc/go/go-system.h
index 9018543..b1c67c3 100644
--- a/gcc/go/go-system.h
+++ b/gcc/go/go-system.h
@@ -22,6 +22,12 @@
#include "config.h"
+/* Define this so that inttypes.h defines the PRI?64 macros even
+ when compiling with a C++ compiler. Define it here so in the
+ event inttypes.h gets pulled in by another header it is already
+ defined. */
+#define __STDC_FORMAT_MACROS
+
// These must be included before the #poison declarations in system.h.
#include <algorithm>