WinRT: Compile fix for qelapsedtimer_win.cpp

Change-Id: I1c9d6904eecd499ca8c2b744e8ac60696f40c20f
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
Oliver Wolff 2013-09-16 14:16:24 +02:00 committed by The Qt Project
parent 89f299201d
commit 4260ed49c6

View File

@ -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()