aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-07-23 12:32:05 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-07-23 13:27:45 +0100
commit3ea62a2b2ed739209936e0ed27539965ae4c9840 (patch)
tree35588c3736b6d8f4c825a155e0f475259fa4ae22
parent1711b045829d281da9da440d70f2bf410127eea4 (diff)
downloadgcc-3ea62a2b2ed739209936e0ed27539965ae4c9840.zip
gcc-3ea62a2b2ed739209936e0ed27539965ae4c9840.tar.gz
gcc-3ea62a2b2ed739209936e0ed27539965ae4c9840.tar.bz2
libstdc++: Reduce headers included by <future>
The <future> header only needs std::atomic_flag, so can include <bits/atomic_base.h> instead of the whole of <atomic>. libstdc++-v3/ChangeLog: * include/std/future: Include <bits/atomic_base.h> instead of <atomic>.
-rw-r--r--libstdc++-v3/include/std/future3
1 files changed, 2 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/future b/libstdc++-v3/include/std/future
index 09e54c3..ace0c31 100644
--- a/libstdc++-v3/include/std/future
+++ b/libstdc++-v3/include/std/future
@@ -38,9 +38,10 @@
#include <mutex> // call_once
#include <condition_variable> // __at_thread_exit_elt
#include <system_error>
-#include <atomic>
+#include <bits/atomic_base.h> // atomic_flag
#include <bits/allocated_ptr.h>
#include <bits/atomic_futex.h>
+#include <bits/exception_defines.h>
#include <bits/invoke.h>
#include <bits/unique_ptr.h>
#include <bits/shared_ptr.h>