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

ruby-changes:20810

From: ngoto <ko1@a...>
Date: Fri, 5 Aug 2011 16:03:39 +0900 (JST)
Subject: [ruby-changes:20810] ngoto:r32858 (trunk, ruby_1_9_3): * complex.c (f_signbit): fix compile error in gcc4 on Solaris with

ngoto	2011-08-05 16:03:21 +0900 (Fri, 05 Aug 2011)

  New Revision: 32858

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

  Log:
    * complex.c (f_signbit): fix compile error in gcc4 on Solaris with
      CFLAGS="-std=gnu99".  [ruby-dev:44355] fix [Bug #5159]
    
    * math.c: ditto.

  Modified files:
    branches/ruby_1_9_3/ChangeLog
    branches/ruby_1_9_3/complex.c
    branches/ruby_1_9_3/math.c
    trunk/ChangeLog
    trunk/complex.c
    trunk/math.c

Index: complex.c
===================================================================
--- complex.c	(revision 32857)
+++ complex.c	(revision 32858)
@@ -1173,8 +1173,9 @@
 inline static VALUE
 f_signbit(VALUE x)
 {
-#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__)
-    extern int signbit(double x);
+#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__) && \
+    !defined(signbit)
+    extern int signbit(double);
 #endif
     switch (TYPE(x)) {
       case T_FLOAT: {
Index: math.c
===================================================================
--- math.c	(revision 32857)
+++ math.c	(revision 32858)
@@ -14,8 +14,9 @@
 #include <math.h>
 #include <errno.h>
 
-#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__)
-    extern int signbit(double x);
+#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__) && \
+    !defined(signbit)
+    extern int signbit(double);
 #endif
 
 #define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32857)
+++ ChangeLog	(revision 32858)
@@ -1,3 +1,10 @@
+Fri Aug  5 15:57:10 2011  Naohisa Goto  <ngotogenome@g...>
+
+	* complex.c (f_signbit): fix compile error in gcc4 on Solaris with
+	  CFLAGS="-std=gnu99".  [ruby-dev:44355] fix [Bug #5159]
+
+	* math.c: ditto.
+
 Fri Aug  5 15:55:33 2011  Nobuyoshi Nakada  <nobu@r...>
 
 	* test/ruby/test_object.rb: tests that respond_to? returns false.
Index: ruby_1_9_3/complex.c
===================================================================
--- ruby_1_9_3/complex.c	(revision 32857)
+++ ruby_1_9_3/complex.c	(revision 32858)
@@ -1173,8 +1173,9 @@
 inline static VALUE
 f_signbit(VALUE x)
 {
-#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__)
-    extern int signbit(double x);
+#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__) && \
+    !defined(signbit)
+    extern int signbit(double);
 #endif
     switch (TYPE(x)) {
       case T_FLOAT: {
Index: ruby_1_9_3/math.c
===================================================================
--- ruby_1_9_3/math.c	(revision 32857)
+++ ruby_1_9_3/math.c	(revision 32858)
@@ -14,8 +14,9 @@
 #include <math.h>
 #include <errno.h>
 
-#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__)
-    extern int signbit(double x);
+#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__) && \
+    !defined(signbit)
+    extern int signbit(double);
 #endif
 
 #define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
Index: ruby_1_9_3/ChangeLog
===================================================================
--- ruby_1_9_3/ChangeLog	(revision 32857)
+++ ruby_1_9_3/ChangeLog	(revision 32858)
@@ -1,3 +1,10 @@
+Fri Aug  5 15:57:10 2011  Naohisa Goto  <ngotogenome@g...>
+
+	* complex.c (f_signbit): fix compile error in gcc4 on Solaris with
+	  CFLAGS="-std=gnu99".  [ruby-dev:44355] fix [Bug #5159]
+
+	* math.c: ditto.
+
 Thu Aug  5 10:09:00 2011  Kenta Murata  <mrkn@m...>
 
 	* backport r32846 from trunk.

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

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