mirror of
https://github.com/boostorg/detail.git
synced 2025-07-30 04:17:14 +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 --------------------------------------------------------------//
|
// system.hpp --------------------------------------------------------------//
|
||||||
|
|
||||||
// Copyright 2010 Vicente J. Botet Escriba
|
// 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.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// See http://www.boost.org/LICENSE_1_0.txt
|
// See http://www.boost.org/LICENSE_1_0.txt
|
||||||
@ -20,7 +23,11 @@ namespace detail {
|
|||||||
namespace winapi {
|
namespace winapi {
|
||||||
#if defined( BOOST_USE_WINDOWS_H )
|
#if defined( BOOST_USE_WINDOWS_H )
|
||||||
typedef ::SYSTEM_INFO SYSTEM_INFO_;
|
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
|
#else
|
||||||
extern "C" {
|
extern "C" {
|
||||||
typedef struct _SYSTEM_INFO {
|
typedef struct _SYSTEM_INFO {
|
||||||
@ -42,8 +49,13 @@ extern "C" {
|
|||||||
WORD_ wProcessorRevision;
|
WORD_ wProcessorRevision;
|
||||||
} SYSTEM_INFO_;
|
} SYSTEM_INFO_;
|
||||||
|
|
||||||
|
# if BOOST_USE_WINAPI_VERSION < BOOST_WINAPI_VERSION_WINXP
|
||||||
__declspec(dllimport) void __stdcall
|
__declspec(dllimport) void __stdcall
|
||||||
GetSystemInfo (struct system_info *);
|
GetSystemInfo (struct system_info *);
|
||||||
|
# else
|
||||||
|
__declspec(dllimport) void __stdcall
|
||||||
|
GetNativeSystemInfo (struct system_info *);
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
// time.hpp --------------------------------------------------------------//
|
// time.hpp --------------------------------------------------------------//
|
||||||
|
|
||||||
// Copyright 2010 Vicente J. Botet Escriba
|
// 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.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// See http://www.boost.org/LICENSE_1_0.txt
|
// 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
|
#ifdef BOOST_HAS_GETSYSTEMTIMEASFILETIME // Windows CE does not define GetSystemTimeAsFileTime
|
||||||
using ::GetSystemTimeAsFileTime;
|
using ::GetSystemTimeAsFileTime;
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef BOOST_WINAPI_FAMILY
|
||||||
using ::FileTimeToLocalFileTime;
|
using ::FileTimeToLocalFileTime;
|
||||||
|
#endif
|
||||||
using ::GetSystemTime;
|
using ::GetSystemTime;
|
||||||
using ::SystemTimeToFileTime;
|
using ::SystemTimeToFileTime;
|
||||||
|
|
||||||
|
#ifndef BOOST_WINAPI_FAMILY
|
||||||
using ::GetTickCount;
|
using ::GetTickCount;
|
||||||
|
#endif
|
||||||
#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
|
#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
|
||||||
using ::GetTickCount64;
|
using ::GetTickCount64;
|
||||||
#endif
|
#endif
|
||||||
@ -70,8 +78,10 @@ extern "C" {
|
|||||||
__declspec(dllimport) int WINAPI
|
__declspec(dllimport) int WINAPI
|
||||||
SystemTimeToFileTime(const SYSTEMTIME_* lpSystemTime,
|
SystemTimeToFileTime(const SYSTEMTIME_* lpSystemTime,
|
||||||
FILETIME_* lpFileTime);
|
FILETIME_* lpFileTime);
|
||||||
|
#ifndef BOOST_WINAPI_FAMILY
|
||||||
__declspec(dllimport) DWORD_ WINAPI
|
__declspec(dllimport) DWORD_ WINAPI
|
||||||
GetTickCount();
|
GetTickCount();
|
||||||
|
#endif
|
||||||
#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
|
#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
|
||||||
__declspec(dllimport) ULONGLONG_ WINAPI
|
__declspec(dllimport) ULONGLONG_ WINAPI
|
||||||
GetTickCount64();
|
GetTickCount64();
|
||||||
|
Reference in New Issue
Block a user