From 183340ca0cecd1f1d9def1e0a5eac3bc5ffb0824 Mon Sep 17 00:00:00 2001 From: Gildas Bazin Date: Sun, 20 Mar 2005 19:42:29 +0000 Subject: [PATCH] * src/misc/vlm.c: only use ftime() on win32. --- src/misc/vlm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/misc/vlm.c b/src/misc/vlm.c index 238540cf54..4c304574fb 100644 --- a/src/misc/vlm.c +++ b/src/misc/vlm.c @@ -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 ) -- 2.39.2