在 2025-10-10 03:59, Pali Rohár 写道:
Both functions are available since msvcr80.dll.Additionally function _mkgmtime64 is available since Windows Server 2003 in system msvcrt.dll library (which predates first x64 version, which was Windows Server 2003 SP1, and hence _mkgmtime64 is present in all x64 CRT versions) and function _mkgmtime32 is available since Windows Vista in system msvcrt.dll library. For older CRT libraries provide emulation via musl libc __tm_to_secs() function and normalization via WinAPI FileTimeToSystemTime() function. We cannot use WinAPI SystemTimeToFileTime() function because it does not work with invalid / not-normalized structure as opposite of the CRT _mkgmtime function. Hence that is why the musl libc implementation is included.
I think if you would like to copy code from MUSL, you have to update COPYING.MinGW-w64-runtime.txt to incorporate their license, same in the source file. Otherwise if a user conveys a program that has mingw-w64 CRT linked statically, they will not be including 'the above copyright notice and this permission notice' which may be classified a violation.
-- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
