configure.in: define __STDC_WANT_LIB_EXT1__

* configure.in (__STDC_WANT_LIB_EXT1__): necessary to use memset_s
  in strict C99 mode.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-12-22 17:59:28 +00:00
Родитель 9fb596815d
Коммит b9576e7d84
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Wed Dec 23 02:59:26 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (__STDC_WANT_LIB_EXT1__): necessary to use memset_s
in strict C99 mode.
Wed Dec 23 02:34:36 2015 Nobuyoshi Nakada <nobu@ruby-lang.org> Wed Dec 23 02:34:36 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* regexec.c (match_at): move direct threaded VM code to get rid of * regexec.c (match_at): move direct threaded VM code to get rid of

Просмотреть файл

@ -2317,6 +2317,8 @@ AC_CHECK_FUNCS(utimes)
AC_CHECK_FUNCS(wait4) AC_CHECK_FUNCS(wait4)
AC_CHECK_FUNCS(waitpid) AC_CHECK_FUNCS(waitpid)
AS_IF([test "$ac_cv_func_memset_s" = yes], [AC_DEFINE([__STDC_WANT_LIB_EXT1__], 1)])
AS_IF([test "$ac_cv_func_getcwd" = yes], [ AS_IF([test "$ac_cv_func_getcwd" = yes], [
AC_CACHE_CHECK(if getcwd allocates buffer if NULL is given, [rb_cv_getcwd_malloc], AC_CACHE_CHECK(if getcwd allocates buffer if NULL is given, [rb_cv_getcwd_malloc],
[AC_TRY_RUN([ [AC_TRY_RUN([