1 | // atomic.hpp ------------------------------------------------------------------------// |
2 | |
3 | // Copyright 2021 Andrey Semashev |
4 | |
5 | // Distributed under the Boost Software License, Version 1.0. |
6 | // See http://www.boost.org/LICENSE_1_0.txt |
7 | |
8 | // See library home page at http://www.boost.org/libs/filesystem |
9 | |
10 | //--------------------------------------------------------------------------------------// |
11 | |
12 | #ifndef BOOST_FILESYSTEM_SRC_ATOMIC_REF_HPP_ |
13 | #define BOOST_FILESYSTEM_SRC_ATOMIC_REF_HPP_ |
14 | |
15 | #include <boost/filesystem/config.hpp> |
16 | |
17 | #if !defined(BOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF) |
18 | |
19 | #include <atomic> |
20 | |
21 | namespace atomic_ns = std; |
22 | |
23 | #else // !defined(BOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF) |
24 | |
25 | #include <boost/memory_order.hpp> |
26 | #include <boost/atomic/atomic_ref.hpp> |
27 | |
28 | namespace atomic_ns = boost; |
29 | |
30 | #endif // !defined(BOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF) |
31 | |
32 | #endif // BOOST_FILESYSTEM_SRC_ATOMIC_REF_HPP_ |
33 | |