在 2026-8-17 01:02, Pali Rohár 写道:
On Monday 17 August 2026 00:46:37 Zhongteng Gui wrote:BTW, I wonder if we really should guard wmemchr and similar functions under __NO_ISOCEXT and __CRT__NO_INLINE. UCRT headers always use the inlined version (unless for RC or other non-compilers). I think maybe we could follow this, and remove these files from libmingwex.a.This will break autotools checks and other builds which are not using C header files. mingw-w64 should continue providing symbols for ISO C functions.
External definitions of functions in the standard library are required by the C standard.It's even more tricky since C doesn't support vague linkage, and `static inline` may cause issues with C++ modules. Practically, each inline function in a header should be defined inline (C99 non-extern inline, equivalent to GNU inline), and there has to be a technique to produce a non-inline (C99 extern inline) definition in exactly one source file; see ilockexch.c for example.
-- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
