Re: [Mingw-w64-public] stat, _stat, and _stat64i32 issues (was: dirent changes)

2025-03-05 Thread Pali Rohár
On Sunday 02 March 2025 18:46:49 Lasse Collin wrote: > On 2025-02-27 Pali Rohár wrote: > > I did not wanted to open also this discussion about stat, but as you > > have opened it, I write some important details, which needs to be > > taken into account, otherwise another breakage can happen. > > T

Re: [Mingw-w64-public] [PATCH] headers: fix mpeg2data.h methods orders

2025-03-05 Thread Biswapriyo Nath
I have sent patch to wine to add the IDL files. Merge request link https://gitlab.winehq.org/wine/wine/-/merge_requests/7508. Please test those header files. The structures are defined in mpeg2data.h[1] which should be included in bdadefs.h in vlc. [1]: https://learn.microsoft.com/en-us/previous-v

[Mingw-w64-public] [PATCH] crt: Add support for _dstbias into pre-msvcrt40 import libraries

2025-03-05 Thread Pali Rohár
CRT DLL libraries older than msvcrt40 use internally in all time functions dst bias of one hour. These DLL libraries do not export _dstbias variable and neither __dstbias() and __p__dstbias() functions. So for these CRT import libraries define import variable _dstbias with fixed value -3600 (one h

Re: [Mingw-w64-public] [PATCH] crt: Always include load config in mingwex."

2025-03-05 Thread Alvin Wong via Mingw-w64-public
On 4/3/2025 2:06, Jacek Caban wrote: On 3.03.2025 14:22, Alvin Wong wrote: I think both the current approach of lacking load config and the proposed solution are fragile. Instead of relying on unrelated linker warnings, if such a warning is necessary, it should be implemented properly, with a

Re: [Mingw-w64-public] [PATCH v3] crt: Always include load config in mingwex.

2025-03-05 Thread Alvin Wong via Mingw-w64-public
On 4/3/2025 1:55, Jacek Caban wrote: This is mandatory on ARM64EC and also required on AArch64 for ARM64X builds. Instead of extending the existing logic, unify it by always including it in mingwex. Fill CF Guard fields with zeroes when CF Guard is not enabled in CRT builds. This leverages exi

[Mingw-w64-public] [PATCH v2 1/2] crt: Don't use FE_* constants in truncl.

2025-03-05 Thread Jacek Caban
--- mingw-w64-crt/math/truncl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mingw-w64-crt/math/truncl.c b/mingw-w64-crt/math/truncl.c index 3b47e53d1..d1b296661 100644 --- a/mingw-w64-crt/math/truncl.c +++ b/mingw-w64-crt/math/truncl.c @@ -3,7 +3,7 @@ * This file is

[Mingw-w64-public] [PATCH v2 2/2] fenv: Use MSVC-compatible ABI for fenv.h functions.

2025-03-05 Thread Jacek Caban
Based on Wine code by Piotr Caban and Alexandre Julliard, who granted permission to use it under the mingw-w64 license. Unlike earlier versions, msvcr120 and UCRT implement fenv.h, but their representation differs from what mingw-w64 has used so far. fenv_t has a target-independent layout and fl