On 10/4/2014 18:38, JonY wrote: > This should be the same as the strtok_r case, the following will now be > exposed: > localtime_r > gmtime_r > ctime_r > asctime_r > > Patch OK? > > diff --git a/mingw-w64-headers/crt/time.h b/mingw-w64-headers/crt/time.h > index 5ce5849..1b228d8 100644 > --- a/mingw-w64-headers/crt/time.h > +++ b/mingw-w64-headers/crt/time.h > @@ -169,7 +169,6 @@ char *__cdecl ctime(const time_t *_Time) > __MINGW_ATTRIB_DEPRECATED_SEC_WARN; > struct tm *__cdecl gmtime(const time_t *_Time) > __MINGW_ATTRIB_DEPRECATED_SEC_WARN; > struct tm *__cdecl localtime(const time_t *_Time) > __MINGW_ATTRIB_DEPRECATED_SEC_WARN; > > -#ifdef _POSIX > #ifdef __GNUC__ /* FIXME: Other compilers that these macros work with? */ > #ifndef localtime_r > #define localtime_r(_Time, _Tm) ({ struct tm *___tmp_tm = > \ > @@ -215,7 +214,6 @@ struct tm *__cdecl localtime(const time_t *_Time) > __MINGW_ATTRIB_DEPRECATED_SEC_ > #define ctime_r(_Time,_Str) (ctime ((_Time)) ? (strcpy((_Str),ctime > ((_Time))),(_Str)) : 0) > #endif > #endif /* __GNUC__ */ > -#endif /* _POSIX */ > > time_t __cdecl mktime(struct tm *_Tm); > time_t __cdecl _mkgmtime(struct tm *_Tm); >
Ping, change OK? Alternative, get a real implementation in mingwex?
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Slashdot TV. Videos for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public