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