From 443034090c47a8ae0bfe4dbeab96d05803f870a4 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Fri, 2 Apr 2021 13:10:14 +0100 Subject: [PATCH] Fix spurious printf format warnings with MinGW. Correct MinGW format checking depends on the __MINGW_PRINTF_FORMAT macro, which is defined in its stdio.h. cbfba7a0e9 moved the use of that macro to before the inclusion of stdio.h, introducing spurious "unknown conversion type character 'z'" and similar warnings. --- defs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/defs.h b/defs.h index 661c404f..f9af7c89 100644 --- a/defs.h +++ b/defs.h @@ -13,6 +13,7 @@ #include #include +#include /* for __MINGW_PRINTF_FORMAT */ #include #if defined _MSC_VER && _MSC_VER < 1800