Re: [Mingw-w64-public] Determining mingw runtime version

2022-03-06 Thread Gisle Vanem
sisyphus wrote: Is there a simple command that I can run to see the (mingw-w64) runtime version number - something akin to "gcc -dumpversion" ? A command that displays only the value of __MINGW64_VERSION_MAJOR would probably suffice. Some .bat-file with: setlocal set %find=%WinDir%\system32\

[Mingw-w64-public] Determining mingw runtime version

2022-03-06 Thread sisyphus
Hi, Is there a simple command that I can run to see the (mingw-w64) runtime version number - something akin to "gcc -dumpversion" ? A command that displays only the value of __MINGW64_VERSION_MAJOR would probably suffice. Cheers, Rob ___ Mingw-w64-publ

[Mingw-w64-public] [PATCH 5/7] crt: Build import library for msvcrt20.dll

2022-03-06 Thread Pali Rohár
This is CRT runtime library for Visual C++ 2.0 (MSVC 9.00) and is present in every 32-bit x86 Windows as a system library. --- mingw-w64-crt/Makefile.am| 20 +- mingw-w64-crt/lib32/msvcrt20.def | 1570 ++ mingw-w64-crt/lib32/msvcrt20.mri |6 + 3 files chan

[Mingw-w64-public] [PATCH 6/7] crt: Build import library for msvcrt40.dll

2022-03-06 Thread Pali Rohár
This is CRT runtime library for Visual C++ 4.0 (MSVC 10.00) and 4.1 (10.10). It is present in every 32-bit x86 Windows as a system library. msvcrt40.def file was generated from the original redistributable version of Visual C++ 4.1 library. --- mingw-w64-crt/Makefile.am| 18 +- mingw-w6

[Mingw-w64-public] [PATCH 7/7] crt: Build import library for msvcr70.dll and msvcr71.dll

2022-03-06 Thread Pali Rohár
These are CRT runtime libraries for Visual Studio 2002 and 2003. These libraries need to be installed separately via redistributable packages. --- mingw-w64-crt/Makefile.am | 22 +- mingw-w64-crt/lib32/msvcr70.def | 899 mingw-w64-crt/lib32/msvcr70.mri | 6

[Mingw-w64-public] [PATCH 0/7] crt: Build more msvcrt import libraries

2022-03-06 Thread Pali Rohár
There are more variants of msvcrt runtime libraries and mingw-w64 currently does not build import library for each variant. Some variants are available in all Windows versions as system libraries, some are available only via external redistributable package. Build import libraries also for msvcrt1

[Mingw-w64-public] [PATCH 4/7] crt: Build import library for msvcrt10.dll

2022-03-06 Thread Pali Rohár
This is CRT runtime library for Visual C++ 1.x (MSVC 8.00). It should be distributed as a part of the application which use it. msvcrt10.def file was generated from the original redistributable version of this library. --- mingw-w64-crt/Makefile.am| 25 +- mingw-w64-crt/lib32/msvcrt10.de

[Mingw-w64-public] [PATCH 2/7] crt: Move dummy stdio _lock() and _unlock() functions into stdio/mingw_dummy__lock.c file

2022-03-06 Thread Pali Rohár
It would be used also in followup changes. --- mingw-w64-crt/Makefile.am | 1 + mingw-w64-crt/crt/crtdll_compat.c | 6 -- mingw-w64-crt/stdio/mingw_dummy__lock.c | 12 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 mingw-w64-crt/stdio/m

[Mingw-w64-public] [PATCH 1/7] crt: Move implementation of __initenv and __winitenv to common file misc/__initenv.c

2022-03-06 Thread Pali Rohár
crtdll.dll and ucrt needs same implementation of __initenv and __winitenv symbols. Deduplicate code and move it into a new misc/__initenv.c file. --- mingw-w64-crt/Makefile.am | 2 ++ mingw-w64-crt/crt/crtdll_compat.c | 6 -- mingw-w64-crt/crt/ucrtbase_compat.c | 5 - mingw-

[Mingw-w64-public] [PATCH 3/7] crt: Move dummy __setusermatherr() function into misc/dummy__setusermatherr.c file.

2022-03-06 Thread Pali Rohár
It would be used also in followup changes. --- mingw-w64-crt/Makefile.am | 1 + mingw-w64-crt/crt/crtdll_compat.c | 5 - mingw-w64-crt/misc/dummy__setusermatherr.c | 11 +++ 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 mingw-w64-crt/

Re: [Mingw-w64-public] [PATCH 3/3] headers: inttypes.h: Do not define 64-bit modifiers for crtdll.dll builds

2022-03-06 Thread Martin Storsjö
On Sun, 6 Mar 2022, Pali Rohár wrote: crtdll.dll runtime does not suppport 64-bit printf/scanf modifiers. So when targeting crtdll.dll runtime and not using MinGW-w64 stdio functions then do not define any 64-bit modifier in inttypes.h header file. crtdll.dll does not interpret %I64d modifier a

Re: [Mingw-w64-public] [PATCH 2/2] headers: stdio.h: Declare __format__ attribute for _snscanf function

2022-03-06 Thread Martin Storsjö
On Sun, 6 Mar 2022, Pali Rohár wrote: --- mingw-w64-headers/crt/stdio.h | 2 ++ 1 file changed, 2 insertions(+) These two patches seemed fine to me, so I pushed them too. Thanks! // Martin ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sou