diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2009-07-31 12:19:26 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2009-07-31 12:19:26 +0000 |
commit | bd31ae23b22c934af071c579abb49606e4cc4e96 (patch) | |
tree | baa8c05b0e35d29f5b89c95b7ce049d810cd870f | |
parent | 17eb4921c8c1ed2da9c6c587821e9cac33fff152 (diff) | |
download | gcc-bd31ae23b22c934af071c579abb49606e4cc4e96.zip gcc-bd31ae23b22c934af071c579abb49606e4cc4e96.tar.gz gcc-bd31ae23b22c934af071c579abb49606e4cc4e96.tar.bz2 |
PR libstdc++/40912 (partial)
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.
From-SVN: r150312
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/std/random | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a1e43db..9707f48 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +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. + 2009-07-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> PR libstdc++/40919 diff --git a/libstdc++-v3/include/std/random b/libstdc++-v3/include/std/random index 1266858..b57ef49 100644 --- a/libstdc++-v3/include/std/random +++ b/libstdc++-v3/include/std/random @@ -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 |