在 2025-3-23 16:46, Biswapriyo Nath 写道:
From e54937ec3ef04ab8b60c5a8f39a548b4aec5 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath
Date: Sun, 23 Mar 2025 08:45:03 +
Subject: [PATCH] headers/crt: Add _wcreate_locale declaration
Required forhttps://sourceforge.net/p/mingw-w64/mailman/message
These functions in sys/stat.h are defined as wrappers around _fstat64() and
_stat64() functions. But msvcr80+ and UCRT DLL libraries provides native
_fstat64i32() and _stat64i32() functions and so it is not needed to use
inline fallback wrappers.
For pre-msvcr80 builds, mingw-w64 already provides
From e54937ec3ef04ab8b60c5a8f39a548b4aec5 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath
Date: Sun, 23 Mar 2025 08:45:03 +
Subject: [PATCH] headers/crt: Add _wcreate_locale declaration
Required for https://sourceforge.net/p/mingw-w64/mailman/message/59164037/
Signed-off-by: Biswapriyo N
mingw-w64-crt implements a number of functions that the compiler considers
built-in. Currently, we must be cautious about compiler optimizations, as they
may not align with our intentions. In theory, the compiler could optimize an
implementation of such a function back into a call to itself.
Rathe
Hi,
I noticed that mingw-w64's `locale.h` is missing declaration of
`_wcreate_locale` function.
I examined output of `dumpbin.exe -exports` on some msvcr*.dll that I have on
my system and it seems that this function is only available starting with
msvcr110.dll.
Microsoft documentation
(https