]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/atomic/detail/intptr.hpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / boost / atomic / detail / intptr.hpp
1 /*
2 * Distributed under the Boost Software License, Version 1.0.
3 * (See accompanying file LICENSE_1_0.txt or copy at
4 * http://www.boost.org/LICENSE_1_0.txt)
5 *
6 * Copyright (c) 2020 Andrey Semashev
7 */
8 /*!
9 * \file atomic/detail/intptr.hpp
10 *
11 * This header defines (u)intptr_t types.
12 */
13
14 #ifndef BOOST_ATOMIC_DETAIL_INTPTR_HPP_INCLUDED_
15 #define BOOST_ATOMIC_DETAIL_INTPTR_HPP_INCLUDED_
16
17 #include <boost/cstdint.hpp>
18 #if defined(BOOST_HAS_INTPTR_T)
19 #include <cstddef>
20 #endif
21 #include <boost/atomic/detail/config.hpp>
22
23 #ifdef BOOST_HAS_PRAGMA_ONCE
24 #pragma once
25 #endif
26
27 namespace boost {
28 namespace atomics {
29 namespace detail {
30
31 #if !defined(BOOST_HAS_INTPTR_T)
32 using boost::uintptr_t;
33 using boost::intptr_t;
34 #else
35 typedef std::size_t uintptr_t;
36 typedef std::ptrdiff_t intptr_t;
37 #endif
38
39 } // namespace detail
40 } // namespace atomics
41 } // namespace boost
42
43 #endif // BOOST_ATOMIC_DETAIL_INTPTR_HPP_INCLUDED_