windows: fix format string attributes on MinGW
commit25417a626d0b9077bfbb940952f3858d7b8b549b
authorwm4 <wm4@mplayer2.org>
Tue, 31 Jan 2012 07:32:06 +0000 (31 08:32 +0100)
committerUoti Urpala <uau@mplayer2.org>
Wed, 29 Feb 2012 22:22:29 +0000 (1 00:22 +0200)
treee2f61063948b29a9e9fdb5c00fad8a571a367504
parenteebe9309ecd70f86f0a52f09712db833df589206
windows: fix format string attributes on MinGW

MinGW maps the "printf" format string archetype to the non-standard
MSVCRT functions, even if __USE_MINGW_ANSI_STDIO is defined and set
to 1. We need to use "gnu_printf" to use the format strings as provided
by vsnprintf and similar functions to get correct warnings.

Since "gnu_printf" isn't necessarily available on other GCC compatible
compilers (such as clang), do this only on MinGW.
mp_msg.h
mpcommon.h
talloc.h