在 2025-01-14 00:00, Martin Storsjö 写道:
If someone is actively trying to build/use libc++ with these CRTs, I guess it could be worthwhile to add them... The locale functionality wouldn't work, but this is the same situation we have right now on Windows 7 anyway. (And even on OSes where the locale functions exist in msvcrt.dll, it's quite nonfunctional anyway, iirc it only supports setting the "C" locale.)Furthermore, regarding custom CRTs with libc++; officially, libc++ requires Windows 7. It is possible to make it work somewhat on older OSes, by using winpthreads instead of the win32 thread/ synchronization APIs, but it's not guaranteed that there won't be use of other APIs that require Windows 7 anyway.So regarding this patch, I don't have a very strong opinion either way, but let's say that I'm not planning on building libc++ for older CRTs myself at least.
I kinda agree with Jacek here.If there's a reason for a stub function which always fails, then it's only because MSVCRT is a default library. For a non-default library such as MSVCR40, we had better not pretend such a function exists.
-- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public