Updating macro for detecting WinRT to BOOST_WINDOWS_RUNTIME based on code review feedback.

This commit is contained in:
Steve Gates
2014-05-13 16:54:03 -07:00
parent a46db5a32e
commit 78b061c1e1

View File

@ -11,6 +11,7 @@
#define BOOST_DETAIL_WINAPI_TIME_HPP #define BOOST_DETAIL_WINAPI_TIME_HPP
#include <boost/detail/winapi/basic_types.hpp> #include <boost/detail/winapi/basic_types.hpp>
#include <boost/predef.h>
#ifdef BOOST_HAS_PRAGMA_ONCE #ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once #pragma once
@ -32,13 +33,13 @@ 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 #ifndef BOOST_WINDOWS_RUNTIME
using ::FileTimeToLocalFileTime; using ::FileTimeToLocalFileTime;
#endif #endif
using ::GetSystemTime; using ::GetSystemTime;
using ::SystemTimeToFileTime; using ::SystemTimeToFileTime;
#ifndef BOOST_WINAPI_FAMILY #ifndef BOOST_WINDOWS_RUNTIME
using ::GetTickCount; using ::GetTickCount;
#endif #endif
#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6 #if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
@ -76,7 +77,7 @@ 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 #ifndef BOOST_WINDOWS_RUNTIME
__declspec(dllimport) DWORD_ WINAPI __declspec(dllimport) DWORD_ WINAPI
GetTickCount(); GetTickCount();
#endif #endif