diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-10-16 15:49:29 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-10-16 15:49:29 +0100 |
commit | 5ae2c32a8abcc154af73692f55f6b60fc77b08ae (patch) | |
tree | 1b49c6938582e78efc39822706e0c5af7bd1e484 /libstdc++-v3/config.h.in | |
parent | 630f2da9676a699dbd734799822d146861e76f71 (diff) | |
download | gcc-5ae2c32a8abcc154af73692f55f6b60fc77b08ae.zip gcc-5ae2c32a8abcc154af73692f55f6b60fc77b08ae.tar.gz gcc-5ae2c32a8abcc154af73692f55f6b60fc77b08ae.tar.bz2 |
Define _GLIBCXX_USE_DEV_RANDOM as replacement for _GLIBCXX_USE_RANDOM_TR1
Define and use a new macro with a more descriptive name. Only use the
old macro in <tr1/random.h>.
* acinclude.m4 (GLIBCXX_CHECK_RANDOM_TR1): Replace with ...
(GLIBCXX_CHECK_DEV_RANDOM): New macro with more descriptive name.
Define _GLIBCXX_USE_DEV_RANDOM as well as _GLIBCXX_USE_RANDOM_TR1.
* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac: Use GLIBCXX_CHECK_DEV_RANDOM instead of
GLIBCXX_CHECK_RANDOM_TR1.
crossconfig.m4: Likewise.
* include/bits/random.h (random_device): Use _GLIBCXX_USE_DEV_RANDOM
instead of _GLIBCXX_USE_RANDOM_TR1.
* testsuite/26_numerics/random/random_device/cons/token.cc: Likewise.
From-SVN: r265197
Diffstat (limited to 'libstdc++-v3/config.h.in')
-rw-r--r-- | libstdc++-v3/config.h.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++-v3/config.h.in b/libstdc++-v3/config.h.in index 919a1f0..65e7b46 100644 --- a/libstdc++-v3/config.h.in +++ b/libstdc++-v3/config.h.in @@ -924,6 +924,10 @@ this host. */ #undef _GLIBCXX_USE_DECIMAL_FLOAT +/* Define if /dev/random and /dev/urandom are available for + std::random_device. */ +#undef _GLIBCXX_USE_DEV_RANDOM + /* Define if fchmod is available in <sys/stat.h>. */ #undef _GLIBCXX_USE_FCHMOD |