mirror of
https://github.com/yuzu-emu/ext-boost.git
synced 2024-12-23 08:55:42 +00:00
54 lines
1.2 KiB
C++
54 lines
1.2 KiB
C++
|
/*
|
||
|
* Copyright 2010 Vicente J. Botet Escriba
|
||
|
* Copyright 2015 Andrey Semashev
|
||
|
*
|
||
|
* Distributed under the Boost Software License, Version 1.0.
|
||
|
* See http://www.boost.org/LICENSE_1_0.txt
|
||
|
*/
|
||
|
|
||
|
#ifndef BOOST_WINAPI_LOCAL_MEMORY_HPP_INCLUDED_
|
||
|
#define BOOST_WINAPI_LOCAL_MEMORY_HPP_INCLUDED_
|
||
|
|
||
|
#include <boost/winapi/basic_types.hpp>
|
||
|
|
||
|
#ifdef BOOST_HAS_PRAGMA_ONCE
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
#if BOOST_WINAPI_PARTITION_APP_SYSTEM
|
||
|
|
||
|
#if !defined( BOOST_USE_WINDOWS_H )
|
||
|
namespace boost { namespace winapi {
|
||
|
typedef HANDLE_ HLOCAL_;
|
||
|
}}
|
||
|
|
||
|
extern "C" {
|
||
|
BOOST_SYMBOL_IMPORT boost::winapi::HLOCAL_ BOOST_WINAPI_WINAPI_CC
|
||
|
LocalAlloc(
|
||
|
boost::winapi::UINT_ uFlags,
|
||
|
boost::winapi::SIZE_T_ uBytes);
|
||
|
|
||
|
BOOST_SYMBOL_IMPORT boost::winapi::HLOCAL_ BOOST_WINAPI_WINAPI_CC
|
||
|
LocalReAlloc(
|
||
|
boost::winapi::HLOCAL_ hMem,
|
||
|
boost::winapi::SIZE_T_ uBytes,
|
||
|
boost::winapi::UINT_ uFlags);
|
||
|
|
||
|
BOOST_SYMBOL_IMPORT boost::winapi::HLOCAL_ BOOST_WINAPI_WINAPI_CC LocalFree(boost::winapi::HLOCAL_ hMem);
|
||
|
} // extern "C"
|
||
|
#endif
|
||
|
|
||
|
namespace boost {
|
||
|
namespace winapi {
|
||
|
#if defined( BOOST_USE_WINDOWS_H )
|
||
|
typedef ::HLOCAL HLOCAL_;
|
||
|
#endif
|
||
|
using ::LocalAlloc;
|
||
|
using ::LocalReAlloc;
|
||
|
using ::LocalFree;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif // BOOST_WINAPI_PARTITION_APP_SYSTEM
|
||
|
#endif // BOOST_WINAPI_LOCAL_MEMORY_HPP_INCLUDED_
|