diff options
author | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-05 07:03:21 +0000 |
---|---|---|
committer | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-05 07:03:21 +0000 |
commit | 1a4d9503c053dfd89464dcb24b3492ced36a334b (patch) | |
tree | 0c41bef6fdf5a48e81246f65dfa901cf4c783325 /complex.c | |
parent | c649882d3e874551ba2950f9ec38605cdda6bfb2 (diff) |
* complex.c (f_signbit): fix compile error in gcc4 on Solaris with
CFLAGS="-std=gnu99". [ruby-dev:44355] fix [Bug #5159]
* math.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
-rw-r--r-- | complex.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1173,8 +1173,9 @@ nucomp_eql_p(VALUE self, VALUE other) 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: { |