mirror of
https://github.com/boostorg/detail.git
synced 2025-07-29 20:07:15 +02:00
detail changes for WinRT support
This commit is contained in:
committed by
unknown
parent
7312799cc0
commit
d436bcd121
@ -1,6 +1,9 @@
|
||||
// system.hpp --------------------------------------------------------------//
|
||||
|
||||
// Copyright 2010 Vicente J. Botet Escriba
|
||||
// Copyright Steve Gates 2013.
|
||||
// Copyright George Mileka 2013.
|
||||
// Portions Copyright (c) Microsoft Open Technologies, Inc.
|
||||
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// See http://www.boost.org/LICENSE_1_0.txt
|
||||
@ -20,7 +23,11 @@ namespace detail {
|
||||
namespace winapi {
|
||||
#if defined( BOOST_USE_WINDOWS_H )
|
||||
typedef ::SYSTEM_INFO SYSTEM_INFO_;
|
||||
extern "C" __declspec(dllimport) void __stdcall GetSystemInfo (struct system_info *);
|
||||
# if BOOST_USE_WINAPI_VERSION < BOOST_WINAPI_VERSION_WINXP
|
||||
extern "C" __declspec(dllimport) void __stdcall GetSystemInfo (struct system_info *);
|
||||
# else
|
||||
extern "C" __declspec(dllimport) void __stdcall GetNativeSystemInfo (struct system_info *);
|
||||
# endif
|
||||
#else
|
||||
extern "C" {
|
||||
typedef struct _SYSTEM_INFO {
|
||||
@ -42,8 +49,13 @@ extern "C" {
|
||||
WORD_ wProcessorRevision;
|
||||
} SYSTEM_INFO_;
|
||||
|
||||
# if BOOST_USE_WINAPI_VERSION < BOOST_WINAPI_VERSION_WINXP
|
||||
__declspec(dllimport) void __stdcall
|
||||
GetSystemInfo (struct system_info *);
|
||||
# else
|
||||
__declspec(dllimport) void __stdcall
|
||||
GetNativeSystemInfo (struct system_info *);
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -1,6 +1,9 @@
|
||||
// time.hpp --------------------------------------------------------------//
|
||||
|
||||
// Copyright 2010 Vicente J. Botet Escriba
|
||||
// Copyright Steve Gates 2013.
|
||||
// Copyright George Mileka 2013.
|
||||
// Portions Copyright (c) Microsoft Open Technologies, Inc.
|
||||
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// See http://www.boost.org/LICENSE_1_0.txt
|
||||
@ -31,10 +34,15 @@ namespace winapi {
|
||||
#ifdef BOOST_HAS_GETSYSTEMTIMEASFILETIME // Windows CE does not define GetSystemTimeAsFileTime
|
||||
using ::GetSystemTimeAsFileTime;
|
||||
#endif
|
||||
#ifndef BOOST_WINAPI_FAMILY
|
||||
using ::FileTimeToLocalFileTime;
|
||||
#endif
|
||||
using ::GetSystemTime;
|
||||
using ::SystemTimeToFileTime;
|
||||
|
||||
#ifndef BOOST_WINAPI_FAMILY
|
||||
using ::GetTickCount;
|
||||
#endif
|
||||
#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
|
||||
using ::GetTickCount64;
|
||||
#endif
|
||||
@ -70,8 +78,10 @@ extern "C" {
|
||||
__declspec(dllimport) int WINAPI
|
||||
SystemTimeToFileTime(const SYSTEMTIME_* lpSystemTime,
|
||||
FILETIME_* lpFileTime);
|
||||
#ifndef BOOST_WINAPI_FAMILY
|
||||
__declspec(dllimport) DWORD_ WINAPI
|
||||
GetTickCount();
|
||||
#endif
|
||||
#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
|
||||
__declspec(dllimport) ULONGLONG_ WINAPI
|
||||
GetTickCount64();
|
||||
|
Reference in New Issue
Block a user