aboutsummaryrefslogtreecommitdiffstats
path: root/math.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-06 05:13:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-06 05:13:29 +0000
commit5910f07f19588764a9806f4d2d878136e1e38443 (patch)
tree5c113bf9e87d01211a8f49011712407ffc8b82aa /math.c
parent8161c01347c6609707c97934f13386dc4a11941e (diff)
downloadruby-5910f07f19588764a9806f4d2d878136e1e38443.tar.gz
configure.in: check lgamma_r(-0.0)
* configure.in (rb_cv_lgamma_r_m0): check if lgamma_r(-0.0) returns negative infinity. [Bug #12249] * math.c (ruby_lgamma_r): define by the configured result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r--math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/math.c b/math.c
index 8c16c76c3b..9ac898f0ba 100644
--- a/math.c
+++ b/math.c
@@ -750,7 +750,7 @@ ruby_tgamma(const double d)
#define tgamma(d) ruby_tgamma(d)
#endif
-#if defined __APPLE__
+#if defined LGAMMA_R_M0_FIX
static inline double
ruby_lgamma_r(const double d, int *sign)
{