在 2019/9/8 19:00, Liu Hao 写道: > 在 2019/9/7 22:37, Christian Franke 写道: >> >> Yes - for C. No - for C++ as a recent patch removed __gnu_inline__ which >> is required for __builtin_va_arg_pack(). >> >> Changing to 'extern __inline' fixed the build, but leads to another >> problem: The function pointer points to the original (ms) sprintf(), but >> should point to __mingw_sprintf(). >> >> >
There was something I forgot to ask... Why is `sprintf()` inconsistently specified as `extern inline` and `static inline` basing on `__USE_MINGW_ANSI_STDIO`, while `snprintf()` isn't? Maybe it is owing to the fact that `snprintf()` doesn't exist in MSVCRT, I guess? (interesting though, `vsnprintf()` exists.) -- Best regards, LH_Mouse
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