Commit e94574b3 by Tony Reix Committed by Ian Lance Taylor

go-system.h (__STDC_FORMAT_MACROS): Define before including any system header…

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
parent e7d77cf9
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> 2017-10-05 Ian Lance Taylor <iant@golang.org>
* Make-lang.in (GO_OBJS): Add go/names.o. * Make-lang.in (GO_OBJS): Add go/names.o.
......
...@@ -22,6 +22,12 @@ ...@@ -22,6 +22,12 @@
#include "config.h" #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. // These must be included before the #poison declarations in system.h.
#include <algorithm> #include <algorithm>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment