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

ruby-changes:43297

From: ngoto <ko1@a...>
Date: Sat, 11 Jun 2016 01:47:22 +0900 (JST)
Subject: [ruby-changes:43297] ngoto:r55371 (trunk): * include/ruby/defines.h (GCC_VERSION_SINCE): Fix logic error by

ngoto	2016-06-11 01:47:05 +0900 (Sat, 11 Jun 2016)

  New Revision: 55371

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

  Log:
    * include/ruby/defines.h (GCC_VERSION_SINCE): Fix logic error by
      adding parentheses. Fix failures of TestMkmf::TestConvertible
      with GCC 3.4.3 on Solaris 10. [Bug #12479] [ruby-dev:49660]

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/defines.h
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55370)
+++ ChangeLog	(revision 55371)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jun 11 01:38:31 2016  Naohisa Goto  <ngotogenome@g...>
+
+	* include/ruby/defines.h (GCC_VERSION_SINCE): Fix logic error by
+	  adding parentheses. Fix failures of TestMkmf::TestConvertible
+	  with GCC 3.4.3 on Solaris 10. [Bug #12479] [ruby-dev:49660]
+
 Fri Jun 10 21:54:24 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/forwardable.rb (Forwardable._delegator_method): extract
Index: include/ruby/defines.h
===================================================================
--- include/ruby/defines.h	(revision 55370)
+++ include/ruby/defines.h	(revision 55371)
@@ -63,8 +63,8 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/include/ruby/defines.h#L63
   (defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(__clang__) && \
    ((__GNUC__ > (major)) ||  \
     ((__GNUC__ == (major) && \
-      (__GNUC_MINOR__ > (minor)) || \
-      (__GNUC_MINOR__ == (minor) && __GNUC_PATCHLEVEL__ >= (patchlevel))))))
+      ((__GNUC_MINOR__ > (minor)) ||					\
+       (__GNUC_MINOR__ == (minor) && __GNUC_PATCHLEVEL__ >= (patchlevel)))))))
 #endif
 
 /* likely */

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

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