summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-31 14:17:40 (GMT)
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-31 14:17:40 (GMT)
commit4270dbe629600ac7ab72da3fecd13ba7af234a51 (patch)
tree6497d1a0562df13937fa68f37b64a68a27b419b5 /math.c
parent05ec839244c807c1b6f6f701abd01f5eac41a37e (diff)
Forward-ports r32777 from branches/ruby_1_9_3 to trunk.
-- * 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/trunk@32786 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 b3ac188..98b3272 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;