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 | 700aeee754648204314b644f24a75aaebe438ca7 (patch) | |
tree | b309e488f1c7311885f1bf34f744d8253911f334 /math.c | |
parent | 1ded4dbd110868891d1255bc11845c1130a0ca3e (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/trunk@32858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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])) |