[vlc-devel] [PATCH] Fix the latest mingw-w64 crt trunk
martellmalone at gmail.com
Tue Nov 18 16:20:46 CET 2014
Sorry for the confusion.
Previously mingw-w64 had defines like this
#define localtime_r( ......
#define gmtime_r( ......
so autotools did not pick these up as functions as they were #defines
I got a patch merged where these are now actual functions in the mingw-w64
autotools now detects gmtime_r and localtime_r so HAVE_GMTIME_R and
HAVE_LOCALTIME_R get defined.
On mingw-w64 we still need time.h to be included in vlc_fixups.h otherwise
we will get undefined references to the time function itself.
by "emulation functions" I mean that gmtime_r and localtime_r are
implemented using the windows api.
The mingw-w64 team calls these emulated functions.
They are also thread safe just incase you were wondering :)
On Tue, Nov 18, 2014 at 3:11 PM, Rémi Denis-Courmont <remi at remlab.net>
> Le 2014-11-18 17:50, Martell Malone a écrit :
>> I have added emulation functions for gmtime_r and localtime_r to
>> 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.
> I am not sure what you exactly mean by "emulation functions" and I don't
> follow the rest.
> Rémi Denis-Courmont
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vlc-devel