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

[-- Attachment #1: Type: text/plain, Size: 187 bytes --]

libstdc++-v3/ChangeLog:

	* include/precompiled/stdc++.h: Add new headers.
	* include/std/stop_token: Include <semaphore> unconditionally.

Tested powerpc64le-linux. Committed to trunk.


[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1233 bytes --]

commit 127aa17e162384034254e93cd1ae37224c0ce197
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Nov 26 11:25:55 2020

    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 --git a/libstdc++-v3/include/precompiled/stdc++.h b/libstdc++-v3/include/precompiled/stdc++.h
index a418c46288de..692fae76a42f 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 5b2d5a0427c7..316342805702 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:26 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:26 [committed] 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).