]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/winapi/include/boost/detail/winapi/local_memory.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / winapi / include / boost / detail / winapi / local_memory.hpp
1 // local_memory.hpp --------------------------------------------------------------//
2
3 // Copyright 2010 Vicente J. Botet Escriba
4 // Copyright 2015 Andrey Semashev
5
6 // Distributed under the Boost Software License, Version 1.0.
7 // See http://www.boost.org/LICENSE_1_0.txt
8
9
10 #ifndef BOOST_DETAIL_WINAPI_LOCAL_MEMORY_HPP
11 #define BOOST_DETAIL_WINAPI_LOCAL_MEMORY_HPP
12
13 #include <boost/detail/winapi/basic_types.hpp>
14
15 #ifdef BOOST_HAS_PRAGMA_ONCE
16 #pragma once
17 #endif
18
19 #if !defined( BOOST_USE_WINDOWS_H )
20 namespace boost { namespace detail { namespace winapi {
21 typedef HANDLE_ HLOCAL_;
22 }}}
23
24 extern "C" {
25 BOOST_SYMBOL_IMPORT boost::detail::winapi::HLOCAL_ WINAPI
26 LocalAlloc(
27 boost::detail::winapi::UINT_ uFlags,
28 boost::detail::winapi::SIZE_T_ uBytes);
29 BOOST_SYMBOL_IMPORT boost::detail::winapi::HLOCAL_ WINAPI
30 LocalReAlloc(
31 boost::detail::winapi::HLOCAL_ hMem,
32 boost::detail::winapi::SIZE_T_ uBytes,
33 boost::detail::winapi::UINT_ uFlags);
34 BOOST_SYMBOL_IMPORT boost::detail::winapi::HLOCAL_ WINAPI LocalFree(boost::detail::winapi::HLOCAL_ hMem);
35 }
36 #endif
37
38 namespace boost {
39 namespace detail {
40 namespace winapi {
41 #if defined( BOOST_USE_WINDOWS_H )
42 typedef ::HLOCAL HLOCAL_;
43 #endif
44 using ::LocalAlloc;
45 using ::LocalReAlloc;
46 using ::LocalFree;
47 }
48 }
49 }
50
51 #endif // BOOST_DETAIL_WINAPI_LOCAL_MEMORY_HPP