summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-31 12:21:54 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-31 12:21:54 +0000
commit103507355f43bfa127c3797236805e4c6b8df4b2 (patch)
tree0bb7c5a0f157c35b50c4988ad4b6119b1e39ece5 /math.c
parent7e50bb968cf5db146a505610e5b902b565da153a (diff)
* complex.c (f_signbit): gcc4 on Solaris DOES have signbit but does
not have it on header. * math.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r--math.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/math.c b/math.c
index b3ac188d94..98b327272b 100644
--- a/math.c
+++ b/math.c
@@ -14,6 +14,10 @@
#include <math.h>
#include <errno.h>
+#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__)
+ extern int signbit(double x);
+#endif
+
#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
VALUE rb_mMath;