diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-04-20 12:46:11 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-04-20 12:50:50 +0100 |
commit | f1a68574b1f8d2961d3a676dbcf0cc24b6368578 (patch) | |
tree | a68040a623b4816c335a439560141b87d8ca96b9 /gcc | |
parent | 96de14f46f13201abab6fa86fb6fcaf6f03d246d (diff) | |
download | gcc-f1a68574b1f8d2961d3a676dbcf0cc24b6368578.zip gcc-f1a68574b1f8d2961d3a676dbcf0cc24b6368578.tar.gz gcc-f1a68574b1f8d2961d3a676dbcf0cc24b6368578.tar.bz2 |
libstdc++: Define __cpp_lib_to_chars for C++20 [PR 100146]
This defines the feature test macro when uselocale is available, because
the floating-point std::from_chars support currently depends on that.
Co-authored-by: Jakub Jelinek <jakub@redhat.com>
libstdc++-v3/ChangeLog:
PR libstdc++/100146
* include/std/charconv (__cpp_lib_to_chars): Define
conditionally.
* include/std/version (__cpp_lib_to_chars): Likewise..
* testsuite/20_util/from_chars/4.cc: Only check feature test
macro, not _GLIBCXX_HAVE_USELOCALE.
* testsuite/20_util/from_chars/5.cc: Likewise.
* testsuite/20_util/from_chars/6.cc: Likewise.
* testsuite/20_util/to_chars/long_double.cc: Likewise.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions