1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00

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.
This commit is contained in:
Jacob Nevins 2021-04-02 13:10:14 +01:00
parent 8c38e68e8b
commit 443034090c

1
defs.h
View File

@ -13,6 +13,7 @@
#include <stddef.h>
#include <stdint.h>
#include <stdio.h> /* for __MINGW_PRINTF_FORMAT */
#include <stdbool.h>
#if defined _MSC_VER && _MSC_VER < 1800