public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-5436] libstdc++: Add new headers to stdc++.h
@ 2020-11-26 11:25 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2020-11-26 11:25 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-26 11:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26 11:25 [gcc r11-5436] libstdc++: Add new headers to stdc++.h Jonathan Wakely

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).