diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-22 17:59:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-22 17:59:28 +0000 |
commit | b9576e7d848acee37a876df8ff5ec1a8b165fd0d (patch) | |
tree | 1ae022463684cb039fede6cc6f721834ef90e430 | |
parent | 9fb596815d5997b5ee0af42eff7a5de97eb122bc (diff) | |
download | ruby-b9576e7d848acee37a876df8ff5ec1a8b165fd0d.tar.gz |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -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> * regexec.c (match_at): move direct threaded VM code to get rid of diff --git a/configure.in b/configure.in index cbefd7c1db..cdb1b95425 100644 --- a/configure.in +++ b/configure.in @@ -2317,6 +2317,8 @@ AC_CHECK_FUNCS(utimes) AC_CHECK_FUNCS(wait4) 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], [ AC_CACHE_CHECK(if getcwd allocates buffer if NULL is given, [rb_cv_getcwd_malloc], [AC_TRY_RUN([ |