On Friday 16 January 2026 15:52:48 LIU Hao wrote:
> 在 2025-12-29 01:35, Pali Rohár 写道:
> > ---
> > mingw-w64-crt/Makefile.am | 1 +
> > mingw-w64-crt/lib-common/msvcrt.def.in | 2 +-
> > mingw-w64-crt/misc/_ftime32.c | 22 ++++++++++++++++++++++
> > 3 files changed, 24 insertions(+), 1 deletion(-)
> > create mode 100644 mingw-w64-crt/misc/_ftime32.c
> >
> > diff --git a/mingw-w64-crt/misc/_ftime32.c b/mingw-w64-crt/misc/_ftime32.c
> > new file mode 100644
> > index 000000000000..081e7ca6a7d9
> > --- /dev/null
> > +++ b/mingw-w64-crt/misc/_ftime32.c
> > @@ -0,0 +1,22 @@
> > +/**
> > + * This file has no copyright assigned and is placed in the Public Domain.
> > + * This file is part of the mingw-w64 runtime package.
> > + * No warranty is given; refer to the file DISCLAIMER.PD within this
> > package.
> > + */
> > +
> > +#include <sys/timeb.h>
> > +
> > +static void __cdecl emu__ftime32(struct __timeb32 *tb32)
> > +{
> > + struct __timeb64 tb64;
> > + _ftime64(&tb64);
> > + tb32->time = (__time32_t)tb64.time; /* truncate */
> > + tb32->millitm = tb64.millitm;
> > + tb32->timezone = tb64.timezone;
>
> I think you forgot `tb32->dstflag = tb64.dstflag` here?
You are right, it is missing there.
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public