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:
parent
89f299201d
commit
4260ed49c6
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user