On Sun, 26 May 2024, Pali Rohár wrote:

getopt* functions receive also argv[0] argument. So use it for printing
program name instead of the global __argv[0] variable.

This avoids using and importing of the __argv[] DATA symbol from the linked
CRT library, as it is not needed.
---
mingw-w64-crt/misc/getopt.c | 28 +++++++++++-----------------
1 file changed, 11 insertions(+), 17 deletions(-)

LGTM, this sounds reasonable - I pushed this patch.

// 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