LIU Hao wrote:
在 2023/7/18 21:41, Christian Franke 写道:
AFAICS various of the Annex K *_s() functions are long standing parts
of MSVCRT/UCRT and have a compatible signature.
The patch was not intended to be a starting point for adding any of
the missing functions. It only should fix this incompatibility if
requested. Therefore, an alternative would be to use something like
__MINGW_STDC_WANT_LIB_EXT1__ instead of __STDC_WANT_LIB_EXT1__ to
control what function variants are visible.
It's probably not worth doing to introduce the little complexity for
something that very few people care about. And standard conformance is
not a goal of mingw-w64; we should not add unnecessary extensions (aka
'gold plating') that are not found with MSVC-based toolchains.
There are some other trivial reasons (e.g. I think changing the
signature of a function - even if it is inline, and the change is
conditional - might be classified as a breaking change). My conclusion
is that this probably will not be accepted.
OK, no problem, then let's forget this patch. The fact that it is
rejected here might help to convince cppcheck upstream to remove these
two functions from their standard lib config file
(https://trac.cppcheck.net/ticket/11826).
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public