diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-27 13:36:29 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-27 13:36:29 +0000 |
commit | 487fea840105dbb0ff516b797e7d86bea82ef74a (patch) | |
tree | 09300a3fdf3421c0c31d34e05f3a97fae3e6a847 /gcc/system.h | |
parent | 3a05a70c9631864b0c87824cf983ec0665eea501 (diff) | |
download | gcc-487fea840105dbb0ff516b797e7d86bea82ef74a.tar.gz |
2014-05-27 Richard Biener <rguenther@suse.de>
* system.h (__STDC_FORMAT_MACROS): Define as very first thing.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210973 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/system.h b/gcc/system.h index f216230db0a..6cb24b0913b 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -22,6 +22,12 @@ along with GCC; see the file COPYING3. If not see #ifndef 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. */ #include <stdarg.h> @@ -491,7 +497,6 @@ extern void *realloc (void *, size_t); #endif #ifdef HAVE_INTTYPES_H -#define __STDC_FORMAT_MACROS #include <inttypes.h> #endif |