Add missing checks for _GLIBCXX_USE_C99_STDINT_TR1
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 Jul 2018 14:02:11 +0000 (15:02 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 26 Jul 2018 14:02:11 +0000 (15:02 +0100)
commit54c674327fbe86c91211019a6d028ed8699bfaf3
treedfe8138bafa56eb858eeb8694a409ca327ae3641
parent4957b284f1ac52ce14b15fe3b915d46776d624ec
Add missing checks for _GLIBCXX_USE_C99_STDINT_TR1

The throw_allocator extension depends on <tr1/random> which depends on
_GLIBCXX_USE_C99_STDINT_TR1.

The Transactional Memory support uses fixed-width integer types from
<stdint.h>.

* include/ext/throw_allocator.h [!_GLIBCXX_USE_C99_STDINT_TR1]
(random_condition, throw_value_random, throw_allocator_random)
(std::hash<throw_value_random>): Do not define when <tr1/random> is
not usable.
* src/c++11/cow-stdexcept.cc [!_GLIBCXX_USE_C99_STDINT_TR1]: Do not
define transactional memory support when <stdint.h> is not usable.

From-SVN: r263004
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/throw_allocator.h
libstdc++-v3/src/c++11/cow-stdexcept.cc