Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/detail/winapi/memory.hpp @ 16:2665513ce2d3
Add boost headers
author | Chris Cannam |
---|---|
date | Tue, 05 Aug 2014 11:11:38 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:663ca0da4350 | 16:2665513ce2d3 |
---|---|
1 // memory.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_MEMORY_HPP | |
10 #define BOOST_DETAIL_WINAPI_MEMORY_HPP | |
11 | |
12 #include <boost/detail/winapi/basic_types.hpp> | |
13 #include <boost/detail/winapi/security.hpp> | |
14 #include <boost/detail/winapi/LocalFree.hpp> | |
15 | |
16 #ifdef BOOST_HAS_PRAGMA_ONCE | |
17 #pragma once | |
18 #endif | |
19 | |
20 namespace boost | |
21 { | |
22 namespace detail | |
23 { | |
24 namespace winapi | |
25 { | |
26 #if defined( BOOST_USE_WINDOWS_H ) | |
27 using ::CreateFileMappingA; | |
28 using ::FlushViewOfFile; | |
29 using ::GetProcessHeap; | |
30 using ::HeapAlloc; | |
31 using ::HeapFree; | |
32 using ::MapViewOfFileEx; | |
33 using ::OpenFileMappingA; | |
34 using ::UnmapViewOfFile; | |
35 #else | |
36 #undef HeapAlloc | |
37 extern "C" { | |
38 __declspec(dllimport) void * __stdcall | |
39 CreateFileMappingA (void *, SECURITY_ATTRIBUTES_*, unsigned long, unsigned long, unsigned long, const char *); | |
40 __declspec(dllimport) int __stdcall | |
41 FlushViewOfFile (void *, std::size_t); | |
42 __declspec(dllimport) HANDLE_ __stdcall | |
43 GetProcessHeap(); | |
44 __declspec(dllimport) void* __stdcall | |
45 HeapAlloc(HANDLE_,DWORD_,SIZE_T_); | |
46 __declspec(dllimport) BOOL_ __stdcall | |
47 HeapFree(HANDLE_,DWORD_,LPVOID_); | |
48 __declspec(dllimport) void * __stdcall | |
49 MapViewOfFileEx (void *, unsigned long, unsigned long, unsigned long, std::size_t, void*); | |
50 __declspec(dllimport) void * __stdcall | |
51 OpenFileMappingA (unsigned long, int, const char *); | |
52 __declspec(dllimport) int __stdcall | |
53 UnmapViewOfFile(void *); | |
54 } | |
55 #endif | |
56 } | |
57 } | |
58 } | |
59 | |
60 #endif // BOOST_DETAIL_WINAPI_MEMORY_HPP |