public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Aldy Hernandez <aldyh@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc/devel/ranger] libstdc++: Define __cpp_lib_three_way_comparison for freestanding Date: Wed, 17 Jun 2020 20:42:54 +0000 (GMT) [thread overview] Message-ID: <20200617204254.A3322396EC3B@sourceware.org> (raw) https://gcc.gnu.org/g:a2dcb56c9443d1211e14889bd0c2c21360d54cdb commit a2dcb56c9443d1211e14889bd0c2c21360d54cdb Author: Jonathan Wakely <jwakely@redhat.com> Date: Thu Apr 23 21:39:33 2020 +0100 libstdc++: Define __cpp_lib_three_way_comparison for freestanding The <compare> header is always supported, not only for hosted configs. * include/std/version (__cpp_lib_three_way_comparison): Define for freestanding builds. Diff: --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/std/version | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b5dc52c66d2..52535464984 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2020-04-23 Jonathan Wakely <jwakely@redhat.com> + + * include/std/version (__cpp_lib_three_way_comparison): Define for + freestanding builds. + 2020-04-23 Iain Sandoe <iain@sandoe.co.uk> * include/std/coroutine: Update the inline namespace to __n4861. diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version index d06d60c9106..1beb9aa938e 100644 --- a/libstdc++-v3/include/std/version +++ b/libstdc++-v3/include/std/version @@ -184,6 +184,9 @@ #endif #define __cpp_lib_is_nothrow_convertible 201806L #define __cpp_lib_remove_cvref 201711L +#if __cpp_impl_three_way_comparison >= 201907L && __cpp_lib_concepts +# define __cpp_lib_three_way_comparison 201907L +#endif #define __cpp_lib_type_identity 201806L #define __cpp_lib_unwrap_ref 201811L @@ -215,9 +218,6 @@ #define __cpp_lib_span 202002L #define __cpp_lib_ssize 201902L #define __cpp_lib_starts_ends_with 201711L -#if __cpp_impl_three_way_comparison >= 201907L && __cpp_lib_concepts -# define __cpp_lib_three_way_comparison 201907L -#endif #define __cpp_lib_to_address 201711L #define __cpp_lib_to_array 201907L #endif
reply other threads:[~2020-06-17 20:42 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200617204254.A3322396EC3B@sourceware.org \ --to=aldyh@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).