diff --git a/configure.ac b/configure.ac index 05dd41e79c..8447eba105 100644 --- a/configure.ac +++ b/configure.ac @@ -2153,9 +2153,6 @@ AC_CHECK_FUNCS(__sinpi) AS_IF([test "x$ac_cv_member_struct_statx_stx_btime" = xyes], [AC_CHECK_FUNCS(statx)]) -AS_CASE(["$ac_cv_func_memset_s:$ac_cv_func_qsort_s"], [*yes*], - [RUBY_DEFINE_IF([!defined __STDC_WANT_LIB_EXT1__], [__STDC_WANT_LIB_EXT1__], 1)]) - AS_IF([test "$ac_cv_func_getcwd" = yes], [ AC_CACHE_CHECK(if getcwd allocates buffer if NULL is given, [rb_cv_getcwd_malloc], [AC_RUN_IFELSE([AC_LANG_SOURCE([[ diff --git a/util.c b/util.c index 1030c3ecbe..f39e17b8b7 100644 --- a/util.c +++ b/util.c @@ -13,6 +13,10 @@ # define MINGW_HAS_SECURE_API 1 #endif +#ifndef __STDC_WANT_LIB_EXT1__ +#define __STDC_WANT_LIB_EXT1__ 1 +#endif + #include "ruby/internal/config.h" #include