diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/go/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/go/go-system.h | 6 |
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> |