comparison DEPENDENCIES/generic/include/boost/detail/winapi/system.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
1 // system.hpp --------------------------------------------------------------// 1 // system.hpp --------------------------------------------------------------//
2 2
3 // Copyright 2010 Vicente J. Botet Escriba 3 // Copyright 2010 Vicente J. Botet Escriba
4 // Copyright (c) Microsoft Corporation 2014
4 5
5 // Distributed under the Boost Software License, Version 1.0. 6 // Distributed under the Boost Software License, Version 1.0.
6 // See http://www.boost.org/LICENSE_1_0.txt 7 // See http://www.boost.org/LICENSE_1_0.txt
7 8
8 9
18 namespace boost { 19 namespace boost {
19 namespace detail { 20 namespace detail {
20 namespace winapi { 21 namespace winapi {
21 #if defined( BOOST_USE_WINDOWS_H ) 22 #if defined( BOOST_USE_WINDOWS_H )
22 typedef ::SYSTEM_INFO SYSTEM_INFO_; 23 typedef ::SYSTEM_INFO SYSTEM_INFO_;
23 extern "C" __declspec(dllimport) void __stdcall GetSystemInfo (struct system_info *); 24 # if BOOST_USE_WINAPI_VERSION < BOOST_WINAPI_VERSION_WINXP
25 extern "C" __declspec(dllimport) void __stdcall GetSystemInfo (struct system_info *);
26 # else
27 extern "C" __declspec(dllimport) void __stdcall GetNativeSystemInfo (struct system_info *);
28 # endif
24 #else 29 #else
25 extern "C" { 30 extern "C" {
26 typedef struct _SYSTEM_INFO { 31 typedef struct _SYSTEM_INFO {
27 union { 32 union {
28 DWORD_ dwOemId; 33 DWORD_ dwOemId;
40 DWORD_ dwAllocationGranularity; 45 DWORD_ dwAllocationGranularity;
41 WORD_ wProcessorLevel; 46 WORD_ wProcessorLevel;
42 WORD_ wProcessorRevision; 47 WORD_ wProcessorRevision;
43 } SYSTEM_INFO_; 48 } SYSTEM_INFO_;
44 49
50 # if BOOST_USE_WINAPI_VERSION < BOOST_WINAPI_VERSION_WINXP
45 __declspec(dllimport) void __stdcall 51 __declspec(dllimport) void __stdcall
46 GetSystemInfo (struct system_info *); 52 GetSystemInfo (struct system_info *);
53 # else
54 __declspec(dllimport) void __stdcall
55 GetNativeSystemInfo (struct system_info *);
56 # endif
47 } 57 }
48 #endif 58 #endif
49 } 59 }
50 } 60 }
51 } 61 }