Imported Upstream version 1.51.0
[platform/upstream/boost.git] / boost / detail / win / LocalFree.hpp
1 //  LocalFree.hpp  --------------------------------------------------------------//
2
3 //  Copyright 2010 Vicente J. Botet Escriba
4
5 //  Distributed under the Boost Software License, Version 1.0.
6 //  See http://www.boost.org/LICENSE_1_0.txt
7
8
9 #ifndef BOOST_DETAIL_WIN_LOCALFREE_HPP
10 #define BOOST_DETAIL_WIN_LOCALFREE_HPP
11
12 #include <boost/detail/win/basic_types.hpp>
13
14 namespace boost {
15 namespace detail {
16 namespace win32 {
17 #if defined( BOOST_USE_WINDOWS_H )
18     typedef HANDLE_ HLOCAL_;
19
20     using ::LocalFree;
21 #else
22     extern "C" typedef HANDLE_ HLOCAL_;
23     extern "C" __declspec(dllimport) HLOCAL_ WINAPI 
24         LocalFree(HLOCAL_ hMem);
25 #endif
26 }
27 }
28 }
29 #endif // BOOST_DETAIL_WIN_LOCALFREE_HPP