Files

65 lines
1.6 KiB
C++

//
// detail/cstdint.hpp
// ~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef ACTIV_BOOST_ASIO_DETAIL_CSTDINT_HPP
#define ACTIV_BOOST_ASIO_DETAIL_CSTDINT_HPP
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma once
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
#include <ActivBoost/asio/detail/config.hpp>
#if defined(ACTIV_BOOST_ASIO_HAS_CSTDINT)
# include <cstdint>
#else // defined(ACTIV_BOOST_ASIO_HAS_CSTDINT)
# include <ActivBoost/cstdint.hpp>
#endif // defined(ACTIV_BOOST_ASIO_HAS_CSTDINT)
namespace Boost {
namespace asio {
#if defined(ACTIV_BOOST_ASIO_HAS_CSTDINT)
using std::int16_t;
using std::int_least16_t;
using std::uint16_t;
using std::uint_least16_t;
using std::int32_t;
using std::int_least32_t;
using std::uint32_t;
using std::uint_least32_t;
using std::int64_t;
using std::int_least64_t;
using std::uint64_t;
using std::uint_least64_t;
using std::uintptr_t;
using std::uintmax_t;
#else // defined(ACTIV_BOOST_ASIO_HAS_CSTDINT)
using Boost::int16_t;
using Boost::int_least16_t;
using Boost::uint16_t;
using Boost::uint_least16_t;
using Boost::int32_t;
using Boost::int_least32_t;
using Boost::uint32_t;
using Boost::uint_least32_t;
using Boost::int64_t;
using Boost::int_least64_t;
using Boost::uint64_t;
using Boost::uint_least64_t;
using Boost::uintptr_t;
using Boost::uintmax_t;
#endif // defined(ACTIV_BOOST_ASIO_HAS_CSTDINT)
} // namespace asio
} // namespace Boost
#endif // ACTIV_BOOST_ASIO_DETAIL_CSTDINT_HPP