Add missing checks for _GLIBCXX_USE_C99_STDINT_TR1
commit898fda463f12600534fb4c8b174478d9aaf72efa
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jul 2018 14:02:11 +0000 (26 14:02 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jul 2018 14:02:11 +0000 (26 14:02 +0000)
treedfe8138bafa56eb858eeb8694a409ca327ae3641
parent7810f69529c918b5eec7790ee3ebc0431cae876c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263004 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/throw_allocator.h
libstdc++-v3/src/c++11/cow-stdexcept.cc