This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[v3] libstdc++/40912 (partial)
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 31 Jul 2009 14:23:35 +0200
- Subject: [v3] libstdc++/40912 (partial)
Hi,
for now just making sure the build doesn't fail while building the PCHs.
Paolo.
/////////////////
2009-07-31 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/40912 (partial)
* include/std/random: Disable the facility if <stdint.h> is not
available.
Index: include/std/random
===================================================================
--- include/std/random (revision 150311)
+++ include/std/random (working copy)
@@ -47,12 +47,18 @@
#include <debug/debug.h>
#include <type_traits>
+#ifdef _GLIBCXX_USE_C99_STDINT_TR1
+
+#include <cstdint> // For uint_fast32_t, uint_fast64_t, uint_least32_t
+
#include <bits/random.h>
#ifndef _GLIBCXX_EXPORT_TEMPLATE
# include <bits/random.tcc>
#endif
+#endif // _GLIBCXX_USE_C99_STDINT_TR1
+
#endif // __GXX_EXPERIMENTAL_CXX0X__
#endif // _GLIBCXX_RANDOM