From: redi Date: Fri, 18 Sep 2015 11:21:05 +0000 (+0000) Subject: Fix errors due to extra includes in extc++.h X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=11c21e15ef136d36a2ad44b672f7325ece100e65;p=thirdparty%2Fgcc.git Fix errors due to extra includes in extc++.h * include/precompiled/extc++.h: Fix bootstrap error due to unconditional inclusion of . * include/ext/random: Check for definition of UINT32_C. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227902 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 89b40174df56..1540db24d480 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2015-09-18 Jonathan Wakely + + * include/precompiled/extc++.h: Fix bootstrap error due to + unconditional inclusion of . + * include/ext/random: Check for definition of UINT32_C. + 2015-09-17 Catherine Moore * src/c++11/debug.cc: Include . diff --git a/libstdc++-v3/include/ext/random b/libstdc++-v3/include/ext/random index be6db5d4f65b..0bcfa4a30165 100644 --- a/libstdc++-v3/include/ext/random +++ b/libstdc++-v3/include/ext/random @@ -43,7 +43,7 @@ # include #endif -#ifdef _GLIBCXX_USE_C99_STDINT_TR1 +#if defined(_GLIBCXX_USE_C99_STDINT_TR1) && defined(UINT32_C) namespace __gnu_cxx _GLIBCXX_VISIBILITY(default) { @@ -3499,7 +3499,7 @@ _GLIBCXX_END_NAMESPACE_VERSION #include "ext/opt_random.h" #include "random.tcc" -#endif // _GLIBCXX_USE_C99_STDINT_TR1 +#endif // _GLIBCXX_USE_C99_STDINT_TR1 && UINT32_C #endif // C++11 diff --git a/libstdc++-v3/include/precompiled/extc++.h b/libstdc++-v3/include/precompiled/extc++.h index 8883e47fb0c5..31f5ec802c63 100644 --- a/libstdc++-v3/include/precompiled/extc++.h +++ b/libstdc++-v3/include/precompiled/extc++.h @@ -46,7 +46,6 @@ #endif #include #include -#include #include #include #include