在 2026-10-14 05:43, Oleg Tolmatcev 写道:
GCC includes mingw-w64's stdarg.h before its own (include_next), and this copy, which defines _STDARG_H, makes GCC skip its own definitions. It defined only the two-argument va_start, so C23 and C++26 code using va_start(ap) failed with "macro 'va_start' requires 2 arguments". Define va_start as GCC 15 and later do in these modes, when the compiler has __builtin_c23_va_start, and __STDC_VERSION_STDARG_H__. --- mingw-w64-headers/crt/stdarg.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Thanks for the patch. I have pushed this one now. -- 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
