Skip to content

Commit 0eb9dc6

Browse files
committed
Use more fine-grained includes from Boost.Atomic.
This avoids including headers with IPC atomics, which are not used in Boost.Sync.
1 parent f26e448 commit 0eb9dc6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

include/boost/sync/detail/atomic.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
#ifdef BOOST_SYNC_USE_STD_ATOMIC
4040
#include <atomic>
4141
#else
42-
#include <boost/atomic.hpp>
42+
#include <boost/memory_order.hpp>
43+
#include <boost/atomic/atomic.hpp>
44+
#include <boost/atomic/atomic_flag.hpp>
45+
#include <boost/atomic/fences.hpp>
4346
#endif
4447

4548
#include <boost/sync/detail/header.hpp>

0 commit comments

Comments
 (0)