From ca329c1cd4cbf31ed02ad00f0eb748450b1233c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Mon, 6 May 2019 16:02:06 +0300 Subject: [PATCH] run-tests: Check for the _UCRT define that latest upstream mingw-w64 defines The __MSVCRT_VERSION__ define has been changed and now is set to 0xE00 for UCRT, but the _UCRT define has been added. --- run-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run-tests.sh b/run-tests.sh index 9ad6833..e9a6788 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -15,8 +15,8 @@ cd test DEFAULT_OSES="mingw32 mingw32uwp" cat< is-ucrt.c -#include <_mingw.h> -#if __MSVCRT_VERSION__ < 0x1400 +#include +#if __MSVCRT_VERSION__ < 0x1400 && !defined(_UCRT) #error not ucrt #endif EOF