We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3f3a40 commit 7840ef2Copy full SHA for 7840ef2
2 files changed
configure.ac
@@ -526,7 +526,6 @@ AS_CASE(["$target_os"],
526
RT_VER=`echo "$rb_cv_msvcrt" | tr -cd [0-9]`
527
test "$RT_VER" = "" && RT_VER=60
528
test "$rb_cv_msvcrt" = "ucrt" && RT_VER=140
529
- AS_IF([test $RT_VER -lt 120], AC_MSG_ERROR(Runtime library $RT_VER is not supported))
530
AC_DEFINE_UNQUOTED(RUBY_MSVCRT_VERSION, $RT_VER)
531
sysconfdir=
532
])
error.c
@@ -1076,7 +1076,8 @@ NORETURN(static void die(void));
1076
static void
1077
die(void)
1078
{
1079
-#if defined(_WIN32)
+#if defined(_WIN32) && defined(RUBY_MSVCRT_VERSION) && RUBY_MSVCRT_VERSION >= 80
1080
+ /* mingw32 declares in stdlib.h but does not provide. */
1081
_set_abort_behavior( 0, _CALL_REPORTFAULT);
1082
#endif
1083
0 commit comments