Re: [Mingw-w64-public] [PATCH 10/10] headers: Add support for -D_TIME_BITS=64

2025-03-27 Thread Martin Storsjö
On Thu, 27 Mar 2025, Martin Storsjö wrote: On Thu, 20 Mar 2025, Pali Rohár wrote: Currently all 32-bit non-UCRT builds are forced to use time_t type as 32-bit and also all time_t functions in 32-bit form. With this change, any msvcrt.dll based 32-bit application can use 64-bit time_t function

Re: [Mingw-w64-public] [PATCH 10/10] headers: Add support for -D_TIME_BITS=64

2025-03-27 Thread Martin Storsjö
On Thu, 20 Mar 2025, Pali Rohár wrote: Currently all 32-bit non-UCRT builds are forced to use time_t type as 32-bit and also all time_t functions in 32-bit form. With this change, any msvcrt.dll based 32-bit application can use 64-bit time_t functions by defining -D_TIME_BITS=64 flag during com

Re: [Mingw-w64-public] [PATCH 1/1] headers: Change _S_IFBLK from 0x3000 to 0x6000

2025-03-27 Thread LIU Hao
在 2025-3-19 03:53, Daniel Starke via Mingw-w64-public 写道: The _S_IFBLK macro, used to identify block special files in file systems, is being updated from 0x3000 to 0x6000. This change aligns mingw-w64 with the more commonly used value across Unix-like systems and other C libraries. The old value

Re: [Mingw-w64-public] [PATCH 07/11] crt, headers: Convert the UCRT *wprintf functions to non-inline

2025-03-27 Thread Martin Storsjö
On Thu, 20 Mar 2025, Jacek Caban wrote: On 20.03.2025 18:54, Martin Storsjö wrote: +int __cdecl (*__MINGW_IMP_SYMBOL(snwprintf))(wchar_t *__restrict__, size_t, const wchar_t *__restrict__, ...) = snwprintf; Do we need those |__imp_| symbols in these files? We don’t declare them as |dllimpor

Re: [Mingw-w64-public] [PATCH] Revert "ucrtbase: Make sure that compat symbols aren't autoexported"

2025-03-27 Thread Jacek Caban
On 20.03.2025 23:24, Martin Storsjö wrote: This reverts commit 91459ac35276522b0e4405c76795d91822bb395a. That commit was a workaround for older binutils or LLD versions, that would otherwise autoexport symbols from the CRT libraries. Since 9d9c67b06c1bf4c4550e3de0eb575c2bfbe96df9 in binutils (i

Re: [Mingw-w64-public] [PATCH 3/5] crt: Provide *_recalloc functions

2025-03-27 Thread Martin Storsjö
On Thu, 20 Mar 2025, Pali Rohár wrote: They are natively available since msvcr80.dll, they are not available in msvcrt.dll. Provide compatibility emulation into all import libraries where they are not available. Adjust check for _aligned_msize() which is also available since msvcr80.dll. --- mi

Re: [Mingw-w64-public] [PATCH 00/11] UCRT stdio option handling, __ms_ prefixed functions

2025-03-27 Thread Pali Rohár
On Thursday 20 March 2025 21:57:42 Martin Storsjö wrote: > On Thu, 20 Mar 2025, Pali Rohár wrote: > > > For example in -std=c99 mode we should rather follow C99 standard and > > hence %s in wprintf should take char*. > > So far, we have decided to match MSVC in this aspect. > > For MSVC 2015 CTP