summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@digia.com>2014-01-28 12:55:19 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-28 13:22:51 +0100
commit601175ebc7ee43d8a644f57dd56ba33c9a4c8540 (patch)
treeb95e8972cd3714df987767ece89102b0ba4ac47e
parent1cf8d26f61df6d11b3bc37c2d0a57226df33437d (diff)
downloadqtsensors-601175ebc7ee43d8a644f57dd56ba33c9a4c8540.tar.gz
qtsensors-601175ebc7ee43d8a644f57dd56ba33c9a4c8540.tar.bz2
qtsensors-601175ebc7ee43d8a644f57dd56ba33c9a4c8540.zip
Compile fix for WinRT
Change-Id: Ifc7b86fa4d40dd051399999ad998b0750183d501 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
-rw-r--r--src/plugins/sensors/dummy/dummycommon.cpp4
1 files changed, 4 insertions, 0 deletions
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