[vlc-devel] [PATCH] Fix the latest mingw-w64 crt trunk
Martell Malone
martellmalone at gmail.com
Tue Nov 18 15:50:28 CET 2014
I have added emulation functions for gmtime_r and localtime_r to mingw-w64.
As a result on latest mingw-w64 trunk HAVE_GMTIME_R and HAVE_LOCALTIME_R
are defined so we need to add an extra option for mingw-w64 to include
time.h in fixups.
Comments Welcome
Martell
>From 900be6a3dce00e37dff3bd72fa7230aa44fd7e15 Mon Sep 17 00:00:00 2001
From: Martell Malone <martellmalone at gmail.com>
Date: Tue, 18 Nov 2014 14:45:09 +0000
Subject: [PATCH] always include time.h on mingw-w64 in vlc fixups
---
include/vlc_fixups.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index e515763..15a9b82 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -26,7 +26,7 @@
#ifndef LIBVLC_FIXUPS_H
# define LIBVLC_FIXUPS_H 1
-#if !defined (HAVE_GMTIME_R) || !defined (HAVE_LOCALTIME_R)
+#if !defined (HAVE_GMTIME_R) || !defined (HAVE_LOCALTIME_R) || defined
(__MINGW32__)
# include <time.h> /* time_t */
#endif
--
2.1.3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20141118/8690e29a/attachment.html>
More information about the vlc-devel
mailing list