aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.h
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-07-30 20:55:56 +0100
committerJonathan Wakely <jwakely@redhat.com>2020-07-30 20:55:56 +0100
commite513e9aa53121e628e0403438a5bb3861a50c198 (patch)
treede76aeaa30a94261bf9b439cedc8c6997c3e8e02 /gcc/builtins.h
parent357beca8bce179315bdf112c0f1df20ff5874f39 (diff)
downloadgcc-e513e9aa53121e628e0403438a5bb3861a50c198.zip
gcc-e513e9aa53121e628e0403438a5bb3861a50c198.tar.gz
gcc-e513e9aa53121e628e0403438a5bb3861a50c198.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/builtins.h')
0 files changed, 0 insertions, 0 deletions