]> git.sesse.net Git - vlc/commitdiff
* src/misc/vlm.c: only use ftime() on win32.
authorGildas Bazin <gbazin@videolan.org>
Sun, 20 Mar 2005 19:42:29 +0000 (19:42 +0000)
committerGildas Bazin <gbazin@videolan.org>
Sun, 20 Mar 2005 19:42:29 +0000 (19:42 +0000)
src/misc/vlm.c

index 238540cf54015293d88dfa49cf088afc5b57971d..4c304574fb9f4af108eca0b32ae9cf4fac226bbb 100644 (file)
@@ -1266,9 +1266,13 @@ int ftime(struct timeb *tp)
 
 static int64_t vlm_Date()
 {
+#ifdef WIN32
     struct timeb tm;
     ftime( &tm );
     return ((int64_t)tm.time) * 1000000 + ((int64_t)tm.millitm) * 1000;
+#else
+    return mdate();
+#endif
 }
 
 vlm_schedule_t *vlm_ScheduleNew( vlm_t *vlm, char *psz_name )