]> git.sesse.net Git - vlc/commitdiff
GetSystemTimePreciseAsFileTime is not supported in WinRT...
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 10 Mar 2013 23:50:55 +0000 (00:50 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 10 Mar 2013 23:50:55 +0000 (00:50 +0100)
... but GetSystemTimeAsFileTime is. Go figure...

src/win32/thread.c

index f2c5e310a3a8b65c9fefba68070e7643fb020234..6823ea7c021ffb7ce6f995ccf91782a4616fea62 100644 (file)
@@ -680,7 +680,7 @@ static mtime_t mdate_wall (void)
     FILETIME ts;
     ULARGE_INTEGER s;
 
-#if (_WIN32_WINNT >= 0x0602)
+#if (_WIN32_WINNT >= 0x0602) && !defined(WINAPI_FAMILY_APP)
     GetSystemTimePreciseAsFileTime (&ts);
 #else
     GetSystemTimeAsFileTime (&ts);