From 67f68df8a83be1e425d9968729b5b59f0811e01e Mon Sep 17 00:00:00 2001 From: vitalyster Date: Tue, 5 Nov 2019 18:39:44 +0300 Subject: [PATCH] compiler: display error when MinGW configuration is outdated --- vlib/compiler/cheaders.v | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vlib/compiler/cheaders.v b/vlib/compiler/cheaders.v index 2038e6ef7e..baa14c4ddf 100644 --- a/vlib/compiler/cheaders.v +++ b/vlib/compiler/cheaders.v @@ -15,7 +15,11 @@ CommonCHeaders = ' #include #include // tolower #include -#include // sleep +#include // sleep +#else +#if defined(__MSVCRT_VERSION__) && __MSVCRT_VERSION__ < __MSVCR90_DLL +#error Please upgrade your MinGW distribution to use msvcr90.dll or later. +#endif #endif