aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-07-30 20:55:56 +0100
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:20:18 -0300
commitc4a68ac16456ac8b04e6d0e2d21d174486516a39 (patch)
treed80e06a5bd7628197dd08454075c9925d39a2864 /gcc
parent2bca52013c047ccbc575e14bbab983b10c962651 (diff)
downloadgcc-c4a68ac16456ac8b04e6d0e2d21d174486516a39.zip
gcc-c4a68ac16456ac8b04e6d0e2d21d174486516a39.tar.gz
gcc-c4a68ac16456ac8b04e6d0e2d21d174486516a39.tar.bz2
libstdc++: Check _GLIBCXX_USE_C99_STDLIB for strtof and strtold
On broken systems we only have strtod, not strtof and strtold. Just use strtod for all types, even though that will produce incorrect results in some cases. Similarly, if _GLIBCXX_USE_C99_MATH is not defined then std::isinf won't be declared. Just refer to it unqualified, which should find the C library's isinf macro if that hasn't been #undef'd by <cmath>. libstdc++-v3/ChangeLog: * src/c++17/floating_from_chars.cc (from_chars_impl): Use isinf unqualified. [!_GLIBCXX_USE_C99_STDLIB]: Use strtod for float and long double.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions