Commit 8054b82e by Paolo Carlini Committed by Paolo Carlini

random: Add include checks for c++11 and <cstdint>.

2012-09-26  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/ext/random: Add include checks for c++11 and <cstdint>.

From-SVN: r191792
parent 238ccc1e
2012-09-26 Paolo Carlini <paolo.carlini@oracle.com>
* include/ext/random: Add include checks for c++11 and <cstdint>.
2012-09-26 Benjamin Kosnik <bkoz@redhat.com> 2012-09-26 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/54314 PR libstdc++/54314
......
...@@ -31,12 +31,17 @@ ...@@ -31,12 +31,17 @@
#pragma GCC system_header #pragma GCC system_header
#ifndef __GXX_EXPERIMENTAL_CXX0X__
# include <bits/c++0x_warning.h>
#else
#include <random> #include <random>
#include <array> #include <array>
#ifdef __SSE2__ #ifdef __SSE2__
# include <x86intrin.h> # include <x86intrin.h>
#endif #endif
#ifdef _GLIBCXX_USE_C99_STDINT_TR1
namespace __gnu_cxx _GLIBCXX_VISIBILITY(default) namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
{ {
...@@ -1846,4 +1851,8 @@ _GLIBCXX_END_NAMESPACE_VERSION ...@@ -1846,4 +1851,8 @@ _GLIBCXX_END_NAMESPACE_VERSION
#include "opt_random.h" #include "opt_random.h"
#include "random.tcc" #include "random.tcc"
#endif /* _EXT_RANDOM */ #endif // _GLIBCXX_USE_C99_STDINT_TR1
#endif // __GXX_EXPERIMENTAL_CXX0X__
#endif // _EXT_RANDOM
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment