Skip to content

Commit 7840ef2

Browse files
committed
Win32: Allow some mingw implemeations to use old msvcrt
1 parent f3f3a40 commit 7840ef2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,6 @@ AS_CASE(["$target_os"],
526526
RT_VER=`echo "$rb_cv_msvcrt" | tr -cd [0-9]`
527527
test "$RT_VER" = "" && RT_VER=60
528528
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))
530529
AC_DEFINE_UNQUOTED(RUBY_MSVCRT_VERSION, $RT_VER)
531530
sysconfdir=
532531
])

error.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,8 @@ NORETURN(static void die(void));
10761076
static void
10771077
die(void)
10781078
{
1079-
#if defined(_WIN32)
1079+
#if defined(_WIN32) && defined(RUBY_MSVCRT_VERSION) && RUBY_MSVCRT_VERSION >= 80
1080+
/* mingw32 declares in stdlib.h but does not provide. */
10801081
_set_abort_behavior( 0, _CALL_REPORTFAULT);
10811082
#endif
10821083

0 commit comments

Comments
 (0)