Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/detail/winapi/system.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 // system.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_SYSTEM_HPP |
Chris@16 | 10 #define BOOST_DETAIL_WINAPI_SYSTEM_HPP |
Chris@16 | 11 |
Chris@16 | 12 #include <boost/detail/winapi/basic_types.hpp> |
Chris@16 | 13 |
Chris@16 | 14 #ifdef BOOST_HAS_PRAGMA_ONCE |
Chris@16 | 15 #pragma once |
Chris@16 | 16 #endif |
Chris@16 | 17 |
Chris@16 | 18 namespace boost { |
Chris@16 | 19 namespace detail { |
Chris@16 | 20 namespace winapi { |
Chris@16 | 21 #if defined( BOOST_USE_WINDOWS_H ) |
Chris@16 | 22 typedef ::SYSTEM_INFO SYSTEM_INFO_; |
Chris@16 | 23 extern "C" __declspec(dllimport) void __stdcall GetSystemInfo (struct system_info *); |
Chris@16 | 24 #else |
Chris@16 | 25 extern "C" { |
Chris@16 | 26 typedef struct _SYSTEM_INFO { |
Chris@16 | 27 union { |
Chris@16 | 28 DWORD_ dwOemId; |
Chris@16 | 29 struct { |
Chris@16 | 30 WORD_ wProcessorArchitecture; |
Chris@16 | 31 WORD_ wReserved; |
Chris@16 | 32 } dummy; |
Chris@16 | 33 } ; |
Chris@16 | 34 DWORD_ dwPageSize; |
Chris@16 | 35 LPVOID_ lpMinimumApplicationAddress; |
Chris@16 | 36 LPVOID_ lpMaximumApplicationAddress; |
Chris@16 | 37 DWORD_PTR_ dwActiveProcessorMask; |
Chris@16 | 38 DWORD_ dwNumberOfProcessors; |
Chris@16 | 39 DWORD_ dwProcessorType; |
Chris@16 | 40 DWORD_ dwAllocationGranularity; |
Chris@16 | 41 WORD_ wProcessorLevel; |
Chris@16 | 42 WORD_ wProcessorRevision; |
Chris@16 | 43 } SYSTEM_INFO_; |
Chris@16 | 44 |
Chris@16 | 45 __declspec(dllimport) void __stdcall |
Chris@16 | 46 GetSystemInfo (struct system_info *); |
Chris@16 | 47 } |
Chris@16 | 48 #endif |
Chris@16 | 49 } |
Chris@16 | 50 } |
Chris@16 | 51 } |
Chris@16 | 52 #endif // BOOST_DETAIL_WINAPI_SYSTEM_HPP |