Updating macro for detecting the Windows Runtime based on accepted changes adding a Boost.Predef.

This commit is contained in:
Steve Gates
2014-06-02 12:16:56 -07:00
parent 78b061c1e1
commit b4e608fcf2
2 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
// system.hpp --------------------------------------------------------------//
// Copyright 2010 Vicente J. Botet Escriba
// Copyright (c) Microsoft Corporation
// Copyright (c) Microsoft Corporation 2014
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt

View File

@@ -1,7 +1,7 @@
// time.hpp --------------------------------------------------------------//
// Copyright 2010 Vicente J. Botet Escriba
// Copyright (c) Microsoft Corporation
// Copyright (c) Microsoft Corporation 2014
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
@@ -33,13 +33,13 @@ namespace winapi {
#ifdef BOOST_HAS_GETSYSTEMTIMEASFILETIME // Windows CE does not define GetSystemTimeAsFileTime
using ::GetSystemTimeAsFileTime;
#endif
#ifndef BOOST_WINDOWS_RUNTIME
#if BOOST_PLAT_WINDOWS_DESKTOP
using ::FileTimeToLocalFileTime;
#endif
using ::GetSystemTime;
using ::SystemTimeToFileTime;
#ifndef BOOST_WINDOWS_RUNTIME
#if BOOST_PLAT_WINDOWS_DESKTOP
using ::GetTickCount;
#endif
#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
@@ -77,7 +77,7 @@ extern "C" {
__declspec(dllimport) int WINAPI
SystemTimeToFileTime(const SYSTEMTIME_* lpSystemTime,
FILETIME_* lpFileTime);
#ifndef BOOST_WINDOWS_RUNTIME
#if BOOST_PLAT_WINDOWS_DESKTOP
__declspec(dllimport) DWORD_ WINAPI
GetTickCount();
#endif