headers: Fix non-standard C++ two-argument swprintf() function

Currently this function can be compiled by g++ only with -O1 (or up)
because it uses __builtin_va_arg_pack().

Both non-standard C++ two-argument swprintf() and vswprintf() functions are
just redirection to _swprintf() and _vswprintf() functions. So declare them
via __MINGW_ASM_CALL() redirection, which works with both clang and gcc
compilers in both optimizing and non-optimizing modes.

Reported issue: https://github.com/mingw-w64/mingw-w64/issues/92

Signed-off-by: Martin Storsjö <martin@martin.st>
1 file changed