[vlc-commits] GetSystemTimePreciseAsFileTime is not supported in WinRT...

Jean-Baptiste Kempf git at videolan.org
Mon Mar 11 10:27:21 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Mar 11 00:50:55 2013 +0100| [4542dccea1b28b44fbe208c6278463f1bf18fe6a] | committer: Jean-Baptiste Kempf

GetSystemTimePreciseAsFileTime is not supported in WinRT...

... but GetSystemTimeAsFileTime is. Go figure...

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4542dccea1b28b44fbe208c6278463f1bf18fe6a
---

 src/win32/thread.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/win32/thread.c b/src/win32/thread.c
index f2c5e31..6823ea7 100644
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -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);



More information about the vlc-commits mailing list