From 4260ed49c653487b85d6fa2d3e7e4c60b6e9e591 Mon Sep 17 00:00:00 2001 From: Oliver Wolff Date: Mon, 16 Sep 2013 14:16:24 +0200 Subject: [PATCH] WinRT: Compile fix for qelapsedtimer_win.cpp Change-Id: I1c9d6904eecd499ca8c2b744e8ac60696f40c20f Reviewed-by: Andrew Knight Reviewed-by: Lars Knoll --- src/corelib/tools/qelapsedtimer_win.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/corelib/tools/qelapsedtimer_win.cpp b/src/corelib/tools/qelapsedtimer_win.cpp index 25c63c42e2..a4e33e8201 100644 --- a/src/corelib/tools/qelapsedtimer_win.cpp +++ b/src/corelib/tools/qelapsedtimer_win.cpp @@ -114,6 +114,7 @@ static quint64 getTickCount() } } +#ifndef Q_OS_WINRT if (ptrGetTickCount64) return ptrGetTickCount64(); @@ -124,6 +125,10 @@ static quint64 getTickCount() ++highdword; lastval = val; return val | (quint64(highdword) << 32); +#else // !Q_OS_WINRT + // ptrGetTickCount64 is always set on WinRT but GetTickCount is not available + return ptrGetTickCount64(); +#endif // Q_OS_WINRT } int qt_msectime()