build: Opt out from using mingw-w64's replacement printf(), etc.
authorSimon McVittie <smcv@collabora.com>
Fri, 25 Feb 2022 16:06:59 +0000 (16:06 +0000)
committerSimon McVittie <smcv@collabora.com>
Mon, 19 Sep 2022 09:52:38 +0000 (10:52 +0100)
commit58d44faa5734f7af197d446823c17bedfb7ddb8e
treeaf10d740a0b92576189fa352069cb7afdf812c77
parent5fd9680e1318977bb6d33a89cebbc8b8a3b66ae4
build: Opt out from using mingw-w64's replacement printf(), etc.

The Windows code in dbus is careful to use Windows-specific equivalents
of the Standard C features that are not implemented by msvcrt.dll, so
we don't need to substitute a Standard C printf implementation.

This avoids compiler warnings/errors when gcc expects us to be using
Microsoft printf syntax (`ms_printf` attribute), but newer versions of
mingw-w64 expect us to be using GNU or Standard C printf syntax
(`gnu_printf` attribute) as a result of `__USE_MINGW_ANSI_STDIO` being
enabled by default if not otherwise specified.

Resolves: https://gitlab.freedesktop.org/dbus/dbus/-/issues/380
Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit daf362ee61170727be0ca5dec1cf39435485ad0c)
cmake/config.h.cmake
configure.ac