Mercurial > hg > vamp-build-and-test
annotate 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 |
rev | line source |
---|---|
Chris@16 | 1 // dll.hpp --------------------------------------------------------------// |
Chris@16 | 2 |
Chris@16 | 3 // Copyright 2010 Vicente J. Botet Escriba |
Chris@16 | 4 |
Chris@16 | 5 // Distributed under the Boost Software License, Version 1.0. |
Chris@16 | 6 // See http://www.boost.org/LICENSE_1_0.txt |
Chris@16 | 7 |
Chris@16 | 8 |
Chris@16 | 9 #ifndef BOOST_DETAIL_WINAPI_DLL_HPP |
Chris@16 | 10 #define BOOST_DETAIL_WINAPI_DLL_HPP |
Chris@16 | 11 |
Chris@16 | 12 #include <boost/detail/winapi/basic_types.hpp> |
Chris@16 | 13 #include <boost/detail/winapi/security.hpp> |
Chris@16 | 14 |
Chris@16 | 15 #ifdef BOOST_HAS_PRAGMA_ONCE |
Chris@16 | 16 #pragma once |
Chris@16 | 17 #endif |
Chris@16 | 18 |
Chris@16 | 19 namespace boost |
Chris@16 | 20 { |
Chris@16 | 21 namespace detail |
Chris@16 | 22 { |
Chris@16 | 23 namespace winapi |
Chris@16 | 24 { |
Chris@16 | 25 #if defined( BOOST_USE_WINDOWS_H ) |
Chris@16 | 26 using ::LoadLibrary; |
Chris@16 | 27 using ::FreeLibrary; |
Chris@16 | 28 using ::GetProcAddress; |
Chris@16 | 29 using ::GetModuleHandleA; |
Chris@16 | 30 #else |
Chris@16 | 31 extern "C" { |
Chris@16 | 32 __declspec(dllimport) HMODULE_ __stdcall |
Chris@16 | 33 LoadLibrary( |
Chris@16 | 34 LPCTSTR_ lpFileName |
Chris@16 | 35 ); |
Chris@16 | 36 __declspec(dllimport) BOOL_ __stdcall |
Chris@16 | 37 FreeLibrary( |
Chris@16 | 38 HMODULE_ hModule |
Chris@16 | 39 ); |
Chris@16 | 40 __declspec(dllimport) FARPROC_ __stdcall |
Chris@16 | 41 GetProcAddress( |
Chris@16 | 42 HMODULE_ hModule, |
Chris@16 | 43 LPCSTR_ lpProcName |
Chris@16 | 44 ); |
Chris@16 | 45 __declspec(dllimport) FARPROC_ __stdcall |
Chris@16 | 46 GetModuleHandleA( |
Chris@16 | 47 LPCSTR_ lpProcName |
Chris@16 | 48 ); |
Chris@16 | 49 } |
Chris@16 | 50 #endif |
Chris@16 | 51 } |
Chris@16 | 52 } |
Chris@16 | 53 } |
Chris@16 | 54 |
Chris@16 | 55 #endif // BOOST_DETAIL_WINAPI_THREAD_HPP |