[gcc r11-5436] libstdc++: Add new headers to stdc++.h
Jonathan Wakely
redi@gcc.gnu.org
Thu Nov 26 11:25:59 GMT 2020
https://gcc.gnu.org/g:127aa17e162384034254e93cd1ae37224c0ce197
commit r11-5436-g127aa17e162384034254e93cd1ae37224c0ce197
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Nov 26 11:25:55 2020 +0000
libstdc++: Add new headers to stdc++.h
libstdc++-v3/ChangeLog:
* include/precompiled/stdc++.h: Add new headers.
* include/std/stop_token: Include <semaphore> unconditionally.
Diff:
---
libstdc++-v3/include/precompiled/stdc++.h | 2 ++
libstdc++-v3/include/std/stop_token | 4 +---
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libstdc++-v3/include/precompiled/stdc++.h b/libstdc++-v3/include/precompiled/stdc++.h
index a418c46288d..692fae76a42 100644
--- a/libstdc++-v3/include/precompiled/stdc++.h
+++ b/libstdc++-v3/include/precompiled/stdc++.h
@@ -140,10 +140,12 @@
#if __cpp_impl_coroutine
# include <coroutine>
#endif
+#include <latch>
#include <numbers>
#include <ranges>
#include <span>
#include <stop_token>
+#include <semaphore>
#include <syncstream>
#include <version>
#endif
diff --git a/libstdc++-v3/include/std/stop_token b/libstdc++-v3/include/std/stop_token
index 5b2d5a0427c..31634280570 100644
--- a/libstdc++-v3/include/std/stop_token
+++ b/libstdc++-v3/include/std/stop_token
@@ -34,9 +34,7 @@
#include <atomic>
#include <bits/std_thread.h>
-#if __has_include(<semaphore>)
-# include <semaphore>
-#endif
+#include <semaphore>
#define __cpp_lib_jthread 201911L
More information about the Gcc-cvs
mailing list