]> git.sesse.net Git - vlc/commitdiff
Of course localetime_r has to have another name on Windows.
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 9 Nov 2006 15:43:02 +0000 (15:43 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 9 Nov 2006 15:43:02 +0000 (15:43 +0000)
(And go fix your libc if this does not work for you.)

modules/access_filter/dump.c

index 953badc9ce63dadacc2f7ebd913d157a2457bc34..ccbeaed25c99b2b800055bf97ee4665de41eea1d 100644 (file)
@@ -233,6 +233,14 @@ static int Seek (access_t *access, int64_t offset)
 }
 
 
+#ifdef WIN32
+static inline struct tm *localtime_r (const time_t *now, struct tm *res)
+{
+    return _localtime_s (res, now) ? NULL : res;
+}
+#endif
+
+
 static void Trigger (access_t *access)
 {
     access_sys_t *p_sys = access->p_sys;