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

ruby-changes:41191

From: nobu <ko1@a...>
Date: Wed, 23 Dec 2015 14:29:41 +0900 (JST)
Subject: [ruby-changes:41191] nobu:r53263 (trunk): configure.in: get rid of macro redefinition

nobu	2015-12-23 14:29:36 +0900 (Wed, 23 Dec 2015)

  New Revision: 53263

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

  Log:
    configure.in: get rid of macro redefinition
    
    * configure.in (__STDC_WANT_LIB_EXT1__): get rid of redefinition
      to suppress warnings by gcc5.

  Modified files:
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 53262)
+++ configure.in	(revision 53263)
@@ -2317,7 +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_memset_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],

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

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