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)
6 * Copyright (c) 2020 Andrey Semashev
9 * \file atomic/detail/intptr.hpp
11 * This header defines (u)intptr_t types.
14 #ifndef BOOST_ATOMIC_DETAIL_INTPTR_HPP_INCLUDED_
15 #define BOOST_ATOMIC_DETAIL_INTPTR_HPP_INCLUDED_
17 #include <boost/cstdint.hpp>
18 #if defined(BOOST_HAS_INTPTR_T)
21 #include <boost/atomic/detail/config.hpp>
23 #ifdef BOOST_HAS_PRAGMA_ONCE
31 #if !defined(BOOST_HAS_INTPTR_T)
32 using boost::uintptr_t;
33 using boost::intptr_t;
35 typedef std::size_t uintptr_t;
36 typedef std::ptrdiff_t intptr_t;
40 } // namespace atomics
43 #endif // BOOST_ATOMIC_DETAIL_INTPTR_HPP_INCLUDED_