From a3e63c707999861228b5fe1008c133e6c6cc4a04 Mon Sep 17 00:00:00 2001 From: "Pavel I. Kryukov" Date: Sun, 13 Jan 2019 15:18:03 +0300 Subject: [PATCH] Enable __USE_MINGW_ANSI_STDIO for MinGW builds. testcrypt.exe uses %zu formatting which is not enabled by default in MinGW environment, therefore we have to enable it manually. --- mkfiles.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkfiles.pl b/mkfiles.pl index a7f16cee..4d2c99ce 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -628,7 +628,7 @@ if (defined $makefiles{'cygwin'}) { "# RCINC = --include-dir c:\\cygwin\\include\\\n". "\n". &splitline("CFLAGS = -Wall -O2 -std=gnu99 -Wvla -D_WINDOWS -DDEBUG". - " -DWIN32S_COMPAT -D_NO_OLDNAMES " . + " -DWIN32S_COMPAT -D_NO_OLDNAMES -D__USE_MINGW_ANSI_STDIO=1 " . (join " ", map {"-I$dirpfx$_"} @srcdirs)) . "\n". "LDFLAGS = -s\n".