diff --git a/configure.ac b/configure.ac index 55d65534db9ee6..339ee3b2f2e66e 100644 --- a/configure.ac +++ b/configure.ac @@ -526,7 +526,6 @@ AS_CASE(["$target_os"], RT_VER=`echo "$rb_cv_msvcrt" | tr -cd [0-9]` test "$RT_VER" = "" && RT_VER=60 test "$rb_cv_msvcrt" = "ucrt" && RT_VER=140 - AS_IF([test $RT_VER -lt 120], AC_MSG_ERROR(Runtime library $RT_VER is not supported)) AC_DEFINE_UNQUOTED(RUBY_MSVCRT_VERSION, $RT_VER) sysconfdir= ]) diff --git a/error.c b/error.c index f452f7b01cf23b..ed66e6c8488d0f 100644 --- a/error.c +++ b/error.c @@ -1076,7 +1076,8 @@ NORETURN(static void die(void)); static void die(void) { -#if defined(_WIN32) +#if defined(_WIN32) && defined(RUBY_MSVCRT_VERSION) && RUBY_MSVCRT_VERSION >= 80 + /* mingw32 declares in stdlib.h but does not provide. */ _set_abort_behavior( 0, _CALL_REPORTFAULT); #endif