From 13d81d2dff9aa290ecc4dc14afdfbec146457e6d Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Fri, 2 Oct 2020 13:35:09 -0500 Subject: [PATCH] Add mingw define --- config/cmake_ext_mod/ConfigureChecks.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/config/cmake_ext_mod/ConfigureChecks.cmake b/config/cmake_ext_mod/ConfigureChecks.cmake index 0ddb6d08822..7988772d70c 100644 --- a/config/cmake_ext_mod/ConfigureChecks.cmake +++ b/config/cmake_ext_mod/ConfigureChecks.cmake @@ -69,6 +69,7 @@ if (MINGW) set (WINDOWS 1) # MinGW tries to imitate Windows set (CMAKE_REQUIRED_FLAGS "-DWIN32_LEAN_AND_MEAN=1 -DNOGDI=1") set (${HDF_PREFIX}_HAVE_WINSOCK2_H 1) + set (__USE_MINGW_ANSI_STDIO 1) endif () if (WIN32 AND NOT MINGW)