aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTony Reix <tony.reix@atos.net>2017-10-11 22:54:32 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-10-11 22:54:32 +0000
commite94574b3bf0797709e337676e2df01d260eb875b (patch)
tree37e1edcc98b55e7d0576fc2c991a58f5cb07201c /gcc
parente7d77cf92d5b27a7e85a39b9cbf6562e34848728 (diff)
downloadgcc-e94574b3bf0797709e337676e2df01d260eb875b.zip
gcc-e94574b3bf0797709e337676e2df01d260eb875b.tar.gz
gcc-e94574b3bf0797709e337676e2df01d260eb875b.tar.bz2
go-system.h (__STDC_FORMAT_MACROS): Define before including any system header files, as is done in ../system.h.
* go-system.h (__STDC_FORMAT_MACROS): Define before including any system header files, as is done in ../system.h. From-SVN: r253666
Diffstat (limited to 'gcc')
-rw-r--r--gcc/go/ChangeLog5
-rw-r--r--gcc/go/go-system.h6
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog
index 3918fa8..1c0ef93 100644
--- a/gcc/go/ChangeLog
+++ b/gcc/go/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-11 Tony Reix <tony.reix@atos.net>
+
+ * go-system.h (__STDC_FORMAT_MACROS): Define before including any
+ system header files, as is done in ../system.h.
+
2017-10-05 Ian Lance Taylor <iant@golang.org>
* Make-lang.in (GO_OBJS): Add go/names.o.
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>