From 601175ebc7ee43d8a644f57dd56ba33c9a4c8540 Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski Date: Tue, 28 Jan 2014 12:55:19 +0100 Subject: Compile fix for WinRT Change-Id: Ifc7b86fa4d40dd051399999ad998b0750183d501 Reviewed-by: Friedemann Kleint Reviewed-by: Oliver Wolff --- src/plugins/sensors/dummy/dummycommon.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/sensors/dummy/dummycommon.cpp b/src/plugins/sensors/dummy/dummycommon.cpp index 675e54b..757d48f 100644 --- a/src/plugins/sensors/dummy/dummycommon.cpp +++ b/src/plugins/sensors/dummy/dummycommon.cpp @@ -120,7 +120,11 @@ static quint64 windowsTimeStamp() if (QueryPerformanceCounter(&counterLI)) return 1000000 * counterLI.QuadPart / frequency; } +#ifndef Q_OS_WINRT return GetTickCount(); +#else + return GetTickCount64(); +#endif } #endif -- cgit v1.2.3