0031060: Configuration - Support building with CLang compiler under VS 2019
[occt.git] / src / OSD / OSD_Timer.cxx
index e8bc5d9..c3129a8 100644 (file)
@@ -52,10 +52,10 @@ static inline Standard_Real GetWallClockTime ()
   LARGE_INTEGER time;
   return isOk && QueryPerformanceCounter (&time) ? 
          (Standard_Real)time.QuadPart / (Standard_Real)freq.QuadPart :
-#ifndef OCCT_UWP
-         0.001 * GetTickCount();
-#else
+#if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0600)
          0.001 * GetTickCount64();
+#else
+         0.001 * GetTickCount();
 #endif
 }