From 343642bcd20450cacb534d6ea403a1ff6e420806 Mon Sep 17 00:00:00 2001 From: zoulasc Date: Tue, 21 Jan 2020 13:34:18 -0500 Subject: Add printf attributes to the printflike functions used in tests and fix the format errors. Closes #1318 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 552aef96..9e46c6ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -287,6 +287,10 @@ IF("${CMAKE_C_PLATFORM_ID}" MATCHES "^(HP-UX)$") ADD_DEFINITIONS(-D_XOPEN_SOURCE=500) # Ask wchar.h for mbstate_t ENDIF() +IF(MINGW) + ADD_DEFINITIONS(-D__USE_MINGW_ANSI_STDIO) +ENDIF() + # INCLUDE(CheckCSourceCompiles) INCLUDE(CheckCSourceRuns) -- cgit v1.2.1