On Wed, 28 Feb 2024, Pali Rohár wrote:

Header file time.h already redirects function call gmtime() to _gmtime32().
So if object file compiled with time.h is linked with e.g. libmsvcrt40.a
import library then it is needed to add redirection from _gmtime32 symbol
to gmtime symbol into libmsvcrt40.a library to ensure that application
would use gmtime symbol, because msvcrt40.dll does not provide _gmtime32.
Same applies for all other 32-bit time symbols.
---
mingw-w64-crt/lib32/crtdll.def.in   | 14 +++++++++-----
mingw-w64-crt/lib32/msvcr70.def.in  | 11 +++++++++++
mingw-w64-crt/lib32/msvcr71.def.in  | 11 +++++++++++
mingw-w64-crt/lib32/msvcrt10.def.in |  9 +++++++++
mingw-w64-crt/lib32/msvcrt20.def.in | 11 +++++++++++
mingw-w64-crt/lib32/msvcrt40.def.in | 11 +++++++++++
6 files changed, 62 insertions(+), 5 deletions(-)

LGTM

// Martin

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to