libstdc++: Fix incorrect preprocessor conditions in <version>
authorJonathan Wakely <jwakely@redhat.com>
Mon, 28 Mar 2022 10:39:21 +0000 (11:39 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 29 Mar 2022 09:06:33 +0000 (10:06 +0100)
commit7255d29c577106c14e42a9c3c88fc6fa6b6e4ecf
treea3e286b74e5d9998a1b354c6d362cf477e67a065
parent35464c790382b0ed53c6fd5cc07855b0d3644ab9
libstdc++: Fix incorrect preprocessor conditions in <version>

The conditions that guard the feature test macros in <version> should
match the main definitions of the macros in other headers.

This doesn't matter for GCC, because it supports all the conditions
being tested here, but it does matter for non-GCC compilers without the
relevant C++20 features.

libstdc++-v3/ChangeLog:

* include/std/version (__cpp_lib_variant): Fix conditions to
match <variant>.
(__cpp_lib_expected): Fix condition to match <expected>.
libstdc++-v3/include/std/version