[前][次][番号順一覧][スレッド一覧]

ruby-changes:41180

From: nobu <ko1@a...>
Date: Wed, 23 Dec 2015 02:59:41 +0900 (JST)
Subject: [ruby-changes:41180] nobu:r53252 (trunk): configure.in: define __STDC_WANT_LIB_EXT1__

nobu	2015-12-23 02:59:28 +0900 (Wed, 23 Dec 2015)

  New Revision: 53252

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53252

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

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 53251)
+++ configure.in	(revision 53252)
@@ -2317,6 +2317,8 @@ AC_CHECK_FUNCS(utimes) https://github.com/ruby/ruby/blob/trunk/configure.in#L2317
 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([
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53251)
+++ ChangeLog	(revision 53252)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Dec 23 02:59:26 2015  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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@r...>
 
 	* regexec.c (match_at): move direct threaded VM code to get rid of

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]