Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/detail/winapi/dll.hpp @ 16:2665513ce2d3
Add boost headers
author | Chris Cannam |
---|---|
date | Tue, 05 Aug 2014 11:11:38 +0100 |
parents | |
children | c530137014c0 |
comparison
equal
deleted
inserted
replaced
15:663ca0da4350 | 16:2665513ce2d3 |
---|---|
1 // dll.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_WINAPI_DLL_HPP | |
10 #define BOOST_DETAIL_WINAPI_DLL_HPP | |
11 | |
12 #include <boost/detail/winapi/basic_types.hpp> | |
13 #include <boost/detail/winapi/security.hpp> | |
14 | |
15 #ifdef BOOST_HAS_PRAGMA_ONCE | |
16 #pragma once | |
17 #endif | |
18 | |
19 namespace boost | |
20 { | |
21 namespace detail | |
22 { | |
23 namespace winapi | |
24 { | |
25 #if defined( BOOST_USE_WINDOWS_H ) | |
26 using ::LoadLibrary; | |
27 using ::FreeLibrary; | |
28 using ::GetProcAddress; | |
29 using ::GetModuleHandleA; | |
30 #else | |
31 extern "C" { | |
32 __declspec(dllimport) HMODULE_ __stdcall | |
33 LoadLibrary( | |
34 LPCTSTR_ lpFileName | |
35 ); | |
36 __declspec(dllimport) BOOL_ __stdcall | |
37 FreeLibrary( | |
38 HMODULE_ hModule | |
39 ); | |
40 __declspec(dllimport) FARPROC_ __stdcall | |
41 GetProcAddress( | |
42 HMODULE_ hModule, | |
43 LPCSTR_ lpProcName | |
44 ); | |
45 __declspec(dllimport) FARPROC_ __stdcall | |
46 GetModuleHandleA( | |
47 LPCSTR_ lpProcName | |
48 ); | |
49 } | |
50 #endif | |
51 } | |
52 } | |
53 } | |
54 | |
55 #endif // BOOST_DETAIL_WINAPI_THREAD_HPP |