Chris@16: // LocalFree.hpp --------------------------------------------------------------// Chris@16: Chris@16: // Copyright 2010 Vicente J. Botet Escriba Chris@16: Chris@16: // Distributed under the Boost Software License, Version 1.0. Chris@16: // See http://www.boost.org/LICENSE_1_0.txt Chris@16: Chris@16: Chris@16: #ifndef BOOST_DETAIL_WINAPI_LOCALFREE_HPP Chris@16: #define BOOST_DETAIL_WINAPI_LOCALFREE_HPP Chris@16: Chris@16: #include Chris@16: Chris@16: #ifdef BOOST_HAS_PRAGMA_ONCE Chris@16: #pragma once Chris@16: #endif Chris@16: Chris@16: namespace boost { Chris@16: namespace detail { Chris@16: namespace winapi { Chris@16: #if defined( BOOST_USE_WINDOWS_H ) Chris@16: typedef HANDLE_ HLOCAL_; Chris@16: Chris@16: using ::LocalFree; Chris@16: #else Chris@16: extern "C" typedef HANDLE_ HLOCAL_; Chris@16: extern "C" __declspec(dllimport) HLOCAL_ WINAPI Chris@16: LocalFree(HLOCAL_ hMem); Chris@16: #endif Chris@16: } Chris@16: } Chris@16: } Chris@16: #endif // BOOST_DETAIL_WINAPI_LOCALFREE_HPP