libstdc++: Define __cpp_lib_three_way_comparison for freestanding
authorJonathan Wakely <jwakely@redhat.com>
Thu, 23 Apr 2020 20:39:33 +0000 (21:39 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 23 Apr 2020 20:39:33 +0000 (21:39 +0100)
The <compare> header is always supported, not only for hosted configs.

* include/std/version (__cpp_lib_three_way_comparison): Define for
freestanding builds.

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/version

index b5dc52c..5253546 100644 (file)
@@ -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.
index d06d60c..1beb9aa 100644 (file)
 #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
 
 #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