Commit 7ea7f668 by Richard Biener Committed by Richard Biener

system.h (__STDC_FORMAT_MACROS): Define as very first thing.

2014-05-27  Richard Biener  <rguenther@suse.de>

	* system.h (__STDC_FORMAT_MACROS): Define as very first thing.

From-SVN: r210973
parent 2ef321b1
2014-05-27 Richard Biener <rguenther@suse.de>
* system.h (__STDC_FORMAT_MACROS): Define as very first thing.
2014-05-27 Georg-Johann Lay <avr@gjlay.de> 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
PR libgcc/61152 PR libgcc/61152
......
...@@ -22,6 +22,12 @@ along with GCC; see the file COPYING3. If not see ...@@ -22,6 +22,12 @@ along with GCC; see the file COPYING3. If not see
#ifndef GCC_SYSTEM_H #ifndef GCC_SYSTEM_H
#define GCC_SYSTEM_H #define GCC_SYSTEM_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
/* We must include stdarg.h before stdio.h. */ /* We must include stdarg.h before stdio.h. */
#include <stdarg.h> #include <stdarg.h>
...@@ -491,7 +497,6 @@ extern void *realloc (void *, size_t); ...@@ -491,7 +497,6 @@ extern void *realloc (void *, size_t);
#endif #endif
#ifdef HAVE_INTTYPES_H #ifdef HAVE_INTTYPES_H
#define __STDC_FORMAT_MACROS
#include <inttypes.h> #include <inttypes.h>
#endif #endif
......
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