On 26.12.2024 16:39, Pali Rohár wrote:
They were accidentally removed in commit e0b9e84fd8f9 ("crt: Fix __getmainargs() and __wgetmainargs() ABI for msvcrt40.dll and msvcrt.dll") when these functions were implemented as wrappers around the real functions._imp_ symbols for __getmainargs() and __wgetmainargs() functions are needed for applications which provides own declaration of these functions with __declspec(dllimport). Fixes linking error "undefined reference to `_imp____wgetmainargs'" as was reported in bug report for mpeg123 application: https://github.com/mingw-w64/mingw-w64/issues/73 --- mingw-w64-crt/misc/crtdll__getmainargs.c | 1 + mingw-w64-crt/misc/msvcrt20__getmainargs.c | 1 + mingw-w64-crt/misc/msvcrt20__wgetmainargs.c | 1 + mingw-w64-crt/misc/msvcrt40__getmainargs.c | 1 + mingw-w64-crt/misc/msvcrt40__wgetmainargs.c | 1 + mingw-w64-crt/misc/msvcrt__getmainargs.c | 1 + mingw-w64-crt/misc/msvcrt__wgetmainargs.c | 1 + 7 files changed, 7 insertions(+)
LGTM, I merged it. Thanks, Jacek _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
