From 8525818d90988d2616473cc56bbc9f2bbc8d0d1e Mon Sep 17 00:00:00 2001 From: Milton Woods Date: Tue, 24 Aug 2021 19:37:34 +1000 Subject: [PATCH] Support ANSI *printf specifiers on mingw-w64 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5926f471d..0da9118dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -261,6 +261,11 @@ IF(MSVC) ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS) ENDIF() +# Support ANSI format specifiers for *printf on MINGW: +IF(MINGW) + ADD_DEFINITIONS(-D__USE_MINGW_ANSI_STDIO=1) +ENDIF() + ##### # System inspection checks #####