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

ruby-changes:38559

From: kazu <ko1@a...>
Date: Tue, 26 May 2015 21:38:00 +0900 (JST)
Subject: [ruby-changes:38559] kazu:r50640 (trunk): fix condition

kazu	2015-05-26 21:37:42 +0900 (Tue, 26 May 2015)

  New Revision: 50640

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

  Log:
    fix condition
    
    * include/ruby/defines.h (RUBY_ATTR_ALLOC_SIZE): fix condition.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/defines.h
Index: include/ruby/defines.h
===================================================================
--- include/ruby/defines.h	(revision 50639)
+++ include/ruby/defines.h	(revision 50640)
@@ -112,7 +112,7 @@ RUBY_SYMBOL_EXPORT_BEGIN https://github.com/ruby/ruby/blob/trunk/include/ruby/defines.h#L112
 #define xrealloc2 ruby_xrealloc2
 #define xfree ruby_xfree
 
-#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 3
+#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
 # define RUBY_ATTR_ALLOC_SIZE(params) __attribute__ ((__alloc_size__ params))
 #else
 # define RUBY_ATTR_ALLOC_SIZE(params)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50639)
+++ ChangeLog	(revision 50640)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue May 26 21:35:13 2015  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* include/ruby/defines.h (RUBY_ATTR_ALLOC_SIZE): fix condition.
+
 Mon May 25 22:35:58 2015  NAKAMURA Usaku  <usa@r...>
 
 	* tool/redmine-backporter.rb (rel): after the relations is changed,

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

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