annotate DEPENDENCIES/generic/include/boost/detail/winapi/memory.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // memory.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_MEMORY_HPP
Chris@16 10 #define BOOST_DETAIL_WINAPI_MEMORY_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 #include <boost/detail/winapi/LocalFree.hpp>
Chris@16 15
Chris@16 16 #ifdef BOOST_HAS_PRAGMA_ONCE
Chris@16 17 #pragma once
Chris@16 18 #endif
Chris@16 19
Chris@16 20 namespace boost
Chris@16 21 {
Chris@16 22 namespace detail
Chris@16 23 {
Chris@16 24 namespace winapi
Chris@16 25 {
Chris@16 26 #if defined( BOOST_USE_WINDOWS_H )
Chris@16 27 using ::CreateFileMappingA;
Chris@16 28 using ::FlushViewOfFile;
Chris@16 29 using ::GetProcessHeap;
Chris@16 30 using ::HeapAlloc;
Chris@16 31 using ::HeapFree;
Chris@16 32 using ::MapViewOfFileEx;
Chris@16 33 using ::OpenFileMappingA;
Chris@16 34 using ::UnmapViewOfFile;
Chris@16 35 #else
Chris@16 36 #undef HeapAlloc
Chris@16 37 extern "C" {
Chris@16 38 __declspec(dllimport) void * __stdcall
Chris@16 39 CreateFileMappingA (void *, SECURITY_ATTRIBUTES_*, unsigned long, unsigned long, unsigned long, const char *);
Chris@16 40 __declspec(dllimport) int __stdcall
Chris@16 41 FlushViewOfFile (void *, std::size_t);
Chris@16 42 __declspec(dllimport) HANDLE_ __stdcall
Chris@16 43 GetProcessHeap();
Chris@16 44 __declspec(dllimport) void* __stdcall
Chris@16 45 HeapAlloc(HANDLE_,DWORD_,SIZE_T_);
Chris@16 46 __declspec(dllimport) BOOL_ __stdcall
Chris@16 47 HeapFree(HANDLE_,DWORD_,LPVOID_);
Chris@16 48 __declspec(dllimport) void * __stdcall
Chris@16 49 MapViewOfFileEx (void *, unsigned long, unsigned long, unsigned long, std::size_t, void*);
Chris@16 50 __declspec(dllimport) void * __stdcall
Chris@16 51 OpenFileMappingA (unsigned long, int, const char *);
Chris@16 52 __declspec(dllimport) int __stdcall
Chris@16 53 UnmapViewOfFile(void *);
Chris@16 54 }
Chris@16 55 #endif
Chris@16 56 }
Chris@16 57 }
Chris@16 58 }
Chris@16 59
Chris@16 60 #endif // BOOST_DETAIL_WINAPI_MEMORY_HPP