libstdc++: Add new headers to stdc++.h
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 Nov 2020 11:25:55 +0000 (11:25 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 26 Nov 2020 11:25:55 +0000 (11:25 +0000)
libstdc++-v3/ChangeLog:

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

libstdc++-v3/include/precompiled/stdc++.h
libstdc++-v3/include/std/stop_token

index a418c46288de0979a27993c991d613ac94b46523..692fae76a42fff7a3ce528b9ff0a334ca3d2bf93 100644 (file)
 #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
index 5b2d5a0427c7d75ee57795c71b02e337926f20cb..316342805702a59fac56b23b6d6707b368d37645 100644 (file)
@@ -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