]> git.proxmox.com Git - ceph.git/blob - 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
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
17 namespace boost {
18 namespace detail {
19 namespace winapi {
20
21 #if defined( BOOST_USE_WINDOWS_H )
22
23 const DWORD_ MAX_PATH_ = MAX_PATH;
24
25 #else
26
27 const DWORD_ MAX_PATH_ = 260;
28
29 #endif
30
31 #if defined( BOOST_USE_WINDOWS_H ) && !defined( BOOST_WINAPI_IS_MINGW )
32
33 const DWORD_ UNICODE_STRING_MAX_BYTES_ = UNICODE_STRING_MAX_BYTES;
34 const DWORD_ UNICODE_STRING_MAX_CHARS_ = UNICODE_STRING_MAX_CHARS;
35
36 #else
37
38 const DWORD_ UNICODE_STRING_MAX_BYTES_ = 65534;
39 const DWORD_ UNICODE_STRING_MAX_CHARS_ = 32767;
40
41 #endif
42
43 const DWORD_ max_path = MAX_PATH_;
44 const DWORD_ unicode_string_max_bytes = UNICODE_STRING_MAX_BYTES_;
45 const DWORD_ unicode_string_max_chars = UNICODE_STRING_MAX_CHARS_;
46
47 }
48 }
49 }
50
51 #endif // BOOST_DETAIL_WINAPI_LIMITS_HPP_