]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
random: Add include checks for c++11 and <cstdint>.
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 27 Sep 2012 01:04:30 +0000 (01:04 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 27 Sep 2012 01:04:30 +0000 (01:04 +0000)
2012-09-26  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r191792

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/random

index 19351243552c9ab762a57a6a35a4569732b414bf..7a6f73e6a4f047a429ac94891a6b706a12ed4cbe 100644 (file)
@@ -1,3 +1,7 @@
+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>
 
        PR libstdc++/54314
index c7321a996238c36dcf133d47076dd13a0fbc4a32..884e8a0ca91d30a87abba3d8948a45de71a42bdb 100644 (file)
 
 #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