aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/go-system.h
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/go/go-system.h
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/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>