summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/ext/random
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-27 01:04:30 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-27 01:04:30 +0000
commit0026d5e123bbf3f3741d10e37a206da9dd7008fc (patch)
tree720c4866f06989c2a3066bd93bf3a3f41e9b038e /libstdc++-v3/include/ext/random
parent331a7e52a644aadbeb97158c40010dc482a5a325 (diff)
downloadgcc-0026d5e123bbf3f3741d10e37a206da9dd7008fc.tar.gz
2012-09-26 Paolo Carlini <paolo.carlini@oracle.com>
* include/ext/random: Add include checks for c++11 and <cstdint>. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191792 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/ext/random')
-rw-r--r--libstdc++-v3/include/ext/random11
1 files changed, 10 insertions, 1 deletions
diff --git a/libstdc++-v3/include/ext/random b/libstdc++-v3/include/ext/random
index c7321a99623..884e8a0ca91 100644
--- a/libstdc++-v3/include/ext/random
+++ b/libstdc++-v3/include/ext/random
@@ -31,12 +31,17 @@
#pragma GCC system_header
+#ifndef __GXX_EXPERIMENTAL_CXX0X__
+# include <bits/c++0x_warning.h>
+#else
+
#include <random>
#include <array>
#ifdef __SSE2__
# include <x86intrin.h>
#endif
+#ifdef _GLIBCXX_USE_C99_STDINT_TR1
namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
{
@@ -1846,4 +1851,8 @@ _GLIBCXX_END_NAMESPACE_VERSION
#include "opt_random.h"
#include "random.tcc"
-#endif /* _EXT_RANDOM */
+#endif // _GLIBCXX_USE_C99_STDINT_TR1
+
+#endif // __GXX_EXPERIMENTAL_CXX0X__
+
+#endif // _EXT_RANDOM