aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-11-14 19:22:47 +0000
committerJonathan Wakely <jwakely@redhat.com>2023-11-16 08:00:36 +0000
commite469f9003dd1188ef87ddb62e3ab4d5cbeb905b4 (patch)
tree0ec4139178148547833ec3756203c98b9fd71472 /libstdc++-v3/include/std
parent17aca35c0ecd23de40c1352c0a7220bad3f11cfc (diff)
downloadgcc-e469f9003dd1188ef87ddb62e3ab4d5cbeb905b4.zip
gcc-e469f9003dd1188ef87ddb62e3ab4d5cbeb905b4.tar.gz
gcc-e469f9003dd1188ef87ddb62e3ab4d5cbeb905b4.tar.bz2
libstdc++: Use 202100L as feature test check for C++23
I noticed that our C++23 features were not being defined when using Clang 16 with -std=c++2b, because it only defines __cplusplus=202101L but <bits/version.h> uses 202302L since my r14-3252-g0c316669b092fb change. This changes <bits/version.h> to use 202100 instead of the final 202302 value so that we support Clang 16's -std=c++2b mode. libstdc++-v3/ChangeLog: * include/bits/version.def (stds): Use >= 202100 for C++23 condition. * include/bits/version.h: Regenerate. * include/std/thread: Use > C++20 instead of >= C++23 for __cplusplus condition.
Diffstat (limited to 'libstdc++-v3/include/std')
-rw-r--r--libstdc++-v3/include/std/thread2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/thread b/libstdc++-v3/include/std/thread
index c182a4d..39042d7 100644
--- a/libstdc++-v3/include/std/thread
+++ b/libstdc++-v3/include/std/thread
@@ -42,7 +42,7 @@
# include <stop_token> // std::stop_source, std::stop_token, std::nostopstate
#endif
-#if __cplusplus >= 202302L
+#if __cplusplus > 202002L
# include <format>
#endif