]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/winapi/include/boost/detail/winapi/limits.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / winapi / include / boost / detail / winapi / limits.hpp
CommitLineData
7c673cae
FG
1// limits.hpp --------------------------------------------------------------//
2
3// Copyright 2016 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#ifndef BOOST_DETAIL_WINAPI_LIMITS_HPP_
9#define BOOST_DETAIL_WINAPI_LIMITS_HPP_
10
11#include <boost/detail/winapi/basic_types.hpp>
12
13#ifdef BOOST_HAS_PRAGMA_ONCE
14#pragma once
15#endif
16
17namespace boost {
18namespace detail {
19namespace winapi {
20
21#if defined( BOOST_USE_WINDOWS_H )
22
23const DWORD_ MAX_PATH_ = MAX_PATH;
24
25#else
26
27const DWORD_ MAX_PATH_ = 260;
28
29#endif
30
31#if defined( BOOST_USE_WINDOWS_H ) && !defined( BOOST_WINAPI_IS_MINGW )
32
33const DWORD_ UNICODE_STRING_MAX_BYTES_ = UNICODE_STRING_MAX_BYTES;
34const DWORD_ UNICODE_STRING_MAX_CHARS_ = UNICODE_STRING_MAX_CHARS;
35
36#else
37
38const DWORD_ UNICODE_STRING_MAX_BYTES_ = 65534;
39const DWORD_ UNICODE_STRING_MAX_CHARS_ = 32767;
40
41#endif
42
43const DWORD_ max_path = MAX_PATH_;
44const DWORD_ unicode_string_max_bytes = UNICODE_STRING_MAX_BYTES_;
45const DWORD_ unicode_string_max_chars = UNICODE_STRING_MAX_CHARS_;
46
47}
48}
49}
50
51#endif // BOOST_DETAIL_WINAPI_LIMITS_HPP_