]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/winapi/limits.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / winapi / limits.hpp
1 /*
2 * Copyright 2016 Andrey Semashev
3 *
4 * Distributed under the Boost Software License, Version 1.0.
5 * See http://www.boost.org/LICENSE_1_0.txt
6 */
7
8 #ifndef BOOST_WINAPI_LIMITS_HPP_INCLUDED_
9 #define BOOST_WINAPI_LIMITS_HPP_INCLUDED_
10
11 #include <boost/winapi/basic_types.hpp>
12
13 #ifdef BOOST_HAS_PRAGMA_ONCE
14 #pragma once
15 #endif
16
17 namespace boost {
18 namespace winapi {
19
20 #if defined( BOOST_USE_WINDOWS_H )
21
22 const DWORD_ MAX_PATH_ = MAX_PATH;
23
24 #else
25
26 const DWORD_ MAX_PATH_ = 260;
27
28 #endif
29
30 #if defined( BOOST_USE_WINDOWS_H ) && !defined( BOOST_WINAPI_IS_MINGW )
31
32 const DWORD_ UNICODE_STRING_MAX_BYTES_ = UNICODE_STRING_MAX_BYTES;
33 const DWORD_ UNICODE_STRING_MAX_CHARS_ = UNICODE_STRING_MAX_CHARS;
34
35 #else
36
37 const DWORD_ UNICODE_STRING_MAX_BYTES_ = 65534;
38 const DWORD_ UNICODE_STRING_MAX_CHARS_ = 32767;
39
40 #endif
41
42 const DWORD_ max_path = MAX_PATH_;
43 const DWORD_ unicode_string_max_bytes = UNICODE_STRING_MAX_BYTES_;
44 const DWORD_ unicode_string_max_chars = UNICODE_STRING_MAX_CHARS_;
45
46 }
47 }
48
49 #endif // BOOST_WINAPI_LIMITS_HPP_INCLUDED_