aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/ext/random
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-05-12 13:55:17 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-05-12 17:46:28 +0100
commit6d664515720bb277d49eb1457477a9d88f4ba5ed (patch)
tree41e1d14ac9a2ab7a5bc784c6020839f0d615fffa /libstdc++-v3/include/ext/random
parent1953c0cfb006a696723baa7d5ea14038f6d901a4 (diff)
downloadgcc-6d664515720bb277d49eb1457477a9d88f4ba5ed.zip
gcc-6d664515720bb277d49eb1457477a9d88f4ba5ed.tar.gz
gcc-6d664515720bb277d49eb1457477a9d88f4ba5ed.tar.bz2
libstdc++: Remove <random> dependency on _GLIBCXX_USE_C99_STDINT_TR1
Since r9-2028-g8ba7f29e3dd064 we've defined most of <cstdint> unconditionally, including uint_least32_t. This means that all of <random> can be defined unconditionally, which means that std::shuffle and std::ranges::shuffle can be too. libstdc++-v3/ChangeLog: * include/bits/algorithmfwd.h (shuffle): Do not depend on _GLIBCXX_USE_C99_STDINT_TR1. * include/bits/ranges_algo.h (shuffle): Likewise. * include/bits/stl_algo.h (shuffle): Likewise. * include/ext/random: Likewise. * include/ext/throw_allocator.h (random_condition): Likewise. * include/std/random: Likewise. * src/c++11/cow-string-inst.cc: Likewise. * src/c++11/random.cc: Likewise.
Diffstat (limited to 'libstdc++-v3/include/ext/random')
-rw-r--r--libstdc++-v3/include/ext/random4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/ext/random b/libstdc++-v3/include/ext/random
index 795c3c5..62acb67 100644
--- a/libstdc++-v3/include/ext/random
+++ b/libstdc++-v3/include/ext/random
@@ -45,7 +45,7 @@
# include <emmintrin.h>
#endif
-#if defined(_GLIBCXX_USE_C99_STDINT_TR1) && defined(UINT32_C)
+#ifdef UINT32_C
namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
{
@@ -3923,7 +3923,7 @@ _GLIBCXX_END_NAMESPACE_VERSION
#include <ext/opt_random.h>
#include <ext/random.tcc>
-#endif // _GLIBCXX_USE_C99_STDINT_TR1 && UINT32_C
+#endif // UINT32_C
#endif // C++11