Files
externals/linux/include/ActivBoost/winapi/limits.hpp
T
2023-12-15 13:15:08 -05:00

53 lines
1.4 KiB
C++

/*
* Copyright 2016 Andrey Semashev
*
* Distributed under the Boost Software License, Version 1.0.
* See http://www.boost.org/LICENSE_1_0.txt
*/
#ifndef ACTIV_BOOST_WINAPI_LIMITS_HPP_INCLUDED_
#define ACTIV_BOOST_WINAPI_LIMITS_HPP_INCLUDED_
#include <ActivBoost/winapi/basic_types.hpp>
#include <ActivBoost/winapi/detail/header.hpp>
#ifdef ACTIV_BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif
namespace Boost {
namespace winapi {
#if defined( ACTIV_BOOST_USE_WINDOWS_H )
ACTIV_BOOST_CONSTEXPR_OR_CONST DWORD_ MAX_PATH_ = MAX_PATH;
#else
ACTIV_BOOST_CONSTEXPR_OR_CONST DWORD_ MAX_PATH_ = 260;
#endif
#if defined( ACTIV_BOOST_USE_WINDOWS_H ) && !defined( ACTIV_BOOST_WINAPI_IS_MINGW )
ACTIV_BOOST_CONSTEXPR_OR_CONST DWORD_ UNICODE_STRING_MAX_BYTES_ = UNICODE_STRING_MAX_BYTES;
ACTIV_BOOST_CONSTEXPR_OR_CONST DWORD_ UNICODE_STRING_MAX_CHARS_ = UNICODE_STRING_MAX_CHARS;
#else
ACTIV_BOOST_CONSTEXPR_OR_CONST DWORD_ UNICODE_STRING_MAX_BYTES_ = 65534;
ACTIV_BOOST_CONSTEXPR_OR_CONST DWORD_ UNICODE_STRING_MAX_CHARS_ = 32767;
#endif
ACTIV_BOOST_CONSTEXPR_OR_CONST DWORD_ max_path = MAX_PATH_;
ACTIV_BOOST_CONSTEXPR_OR_CONST DWORD_ unicode_string_max_bytes = UNICODE_STRING_MAX_BYTES_;
ACTIV_BOOST_CONSTEXPR_OR_CONST DWORD_ unicode_string_max_chars = UNICODE_STRING_MAX_CHARS_;
}
}
#include <ActivBoost/winapi/detail/footer.hpp>
#endif // ACTIV_BOOST_WINAPI_LIMITS_HPP_INCLUDED_