Changes were applied on top of the f3358b10ccfd46c8203998c69dd9bec0eeb7a910
Pali Rohár (6):
headers: Guard time functions for CRT build
crt: Provide emulation of _ftime64 function
crt: Fix return type for POSIX ftime function
crt: Provide emulation of _gmtime64 function
crt: Provide emulation of _mkgmtime32 and _mkgmtime64 functions
crt: Extend t_time test for ftime, _gmtime64, _mkgmtime64, _ctime64
and _wctime64
mingw-w64-crt/Makefile.am | 10 ++
mingw-w64-crt/def-include/crt-aliases.def.in | 7 +-
mingw-w64-crt/include/filetime_to_time64.h | 8 ++
mingw-w64-crt/lib-common/msvcrt.def.in | 10 +-
mingw-w64-crt/misc/__tm_to_secs.h | 104 ++++++++++++++++++
mingw-w64-crt/misc/_ftime64.c | 39 +++++++
mingw-w64-crt/misc/_gmtime64.c | 50 +++++++++
mingw-w64-crt/misc/_mkgmtime32.c | 35 ++++++
mingw-w64-crt/misc/_mkgmtime64.c | 61 +++++++++++
mingw-w64-crt/misc/ftime32.c | 19 ++++
mingw-w64-crt/misc/ftime64.c | 19 ++++
mingw-w64-crt/testcases/t_time.c | 106 +++++++++++++++++--
mingw-w64-headers/crt/sys/timeb.h | 16 ++-
mingw-w64-headers/crt/time.h | 6 ++
14 files changed, 470 insertions(+), 20 deletions(-)
create mode 100644 mingw-w64-crt/misc/__tm_to_secs.h
create mode 100644 mingw-w64-crt/misc/_ftime64.c
create mode 100644 mingw-w64-crt/misc/_gmtime64.c
create mode 100644 mingw-w64-crt/misc/_mkgmtime32.c
create mode 100644 mingw-w64-crt/misc/_mkgmtime64.c
create mode 100644 mingw-w64-crt/misc/ftime32.c
create mode 100644 mingw-w64-crt/misc/ftime64.c
--
2.20.1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public