summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/tr1/cinttypes
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2008-11-13 00:06:55 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2008-11-13 00:06:55 +0000
commitddbfe947b31796b431168737ba6ee4ce4d426a09 (patch)
tree0656ea17a2a3a10982bca04829ccc34ba3553545 /libstdc++-v3/include/tr1/cinttypes
parent63b0fc00a45321c84bb4dcad97dcfdb43b74db63 (diff)
re PR libstdc++/38000 (System header files not found once -isystem /usr/include is used)
2008-11-13 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/38000 * include/c_global/csignal: Do not use include_next. * include/c_global/cstdlib: Likewise. * include/c_global/cstdio: Likewise. * include/c_global/cstdarg: Likewise. * include/c_global/cctype: Likewise. * include/c_global/cerrno: Likewise. * include/c_global/cmath: Likewise. * include/c_global/clocale: Likewise. * include/c_global/climits: Likewise. * include/c_global/cassert: Likewise. * include/c_global/csetjmp: Likewise. * include/c_global/cwchar: Likewise. * include/c_global/cfloat: Likewise. * include/c_global/cstdbool: Likewise. * include/c_global/cstring: Likewise. * include/c_global/cstddef: Likewise. * include/c_global/cwctype: Likewise. * include/tr1/cstdbool: Likewise. * include/tr1_impl/cinttypes: Do not include <inttypes.h>. * include/c_global/cinttypes: Do it here. * include/tr1/cinttypes: Likewise. * include/tr1_impl/cfenv: Do not include <fenv.h>. * include/c_global/cfenv: Do it here. * include/tr1/cfenv: Likewise. * include/tr1_impl/cstdint: Do not include <stdint.h>. * include/c_global/cstdint: Do it here. * include/tr1/cstdint: Likewise. * include/c_compatibility/fenv.h: Include <tr1_impl/cfenv>. * include/c_compatibility/stdint.h: Include <tr1_impl/cstdint>. * include/c_compatibility/inttypes.h: Include <tr1_impl/cinttypes>. * include/c_compatibility/math.h: Minor tweak, add comment. From-SVN: r141812
Diffstat (limited to 'libstdc++-v3/include/tr1/cinttypes')
-rw-r--r--libstdc++-v3/include/tr1/cinttypes15
1 files changed, 15 insertions, 0 deletions
diff --git a/libstdc++-v3/include/tr1/cinttypes b/libstdc++-v3/include/tr1/cinttypes
index 19e2df32386..a0857b49c16 100644
--- a/libstdc++-v3/include/tr1/cinttypes
+++ b/libstdc++-v3/include/tr1/cinttypes
@@ -34,8 +34,23 @@
#ifndef _GLIBCXX_TR1_CINTTYPES
#define _GLIBCXX_TR1_CINTTYPES 1
+#pragma GCC system_header
+
#include <tr1/cstdint>
+// For 8.11.1/1 (see C99, Note 184)
+#if _GLIBCXX_HAVE_INTTYPES_H
+# ifndef __STDC_FORMAT_MACROS
+# define _UNDEF__STDC_FORMAT_MACROS
+# define __STDC_FORMAT_MACROS
+# endif
+# include <inttypes.h>
+# ifdef _UNDEF__STDC_FORMAT_MACROS
+# undef __STDC_FORMAT_MACROS
+# undef _UNDEF__STDC_FORMAT_MACROS
+# endif
+#endif
+
#if defined(_GLIBCXX_INCLUDE_AS_TR1)
# include <tr1_impl/cinttypes>
#else