Fix errors due to extra includes in extc++.h
authorJonathan Wakely <jwakely@redhat.com>
Fri, 18 Sep 2015 11:21:05 +0000 (12:21 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 18 Sep 2015 11:21:05 +0000 (12:21 +0100)
* include/precompiled/extc++.h: Fix bootstrap error due to
unconditional inclusion of <ext/enc_filebuf.h>.
* include/ext/random: Check for definition of UINT32_C.

From-SVN: r227902

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/random
libstdc++-v3/include/precompiled/extc++.h

index 89b40174df5609b03b2a795b7b1bb1d33ff5f42b..1540db24d4808aa038b55844467919795ef13a27 100644 (file)
@@ -1,3 +1,9 @@
+2015-09-18  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/precompiled/extc++.h: Fix bootstrap error due to
+       unconditional inclusion of <ext/enc_filebuf.h>.
+       * include/ext/random: Check for definition of UINT32_C.
+
 2015-09-17  Catherine Moore  <clm@codesourcery.com>
 
        * src/c++11/debug.cc: Include <cstdio>.
index be6db5d4f65b43480342dc2eaaa000d394a9ed4e..0bcfa4a3016506154b6afde2970fa78d660b62e0 100644 (file)
@@ -43,7 +43,7 @@
 # include <x86intrin.h>
 #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
 
index 8883e47fb0c5eb73ce97b6f4d6896132d3c5866b..31f5ec802c6371634a26e86e614cbe6249825611 100644 (file)
@@ -46,7 +46,6 @@
 #endif
 #include <ext/concurrence.h>
 #include <ext/debug_allocator.h>
-#include <ext/enc_filebuf.h>
 #include <ext/extptr_allocator.h>
 #include <ext/functional>
 #include <ext/iterator>