summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-12 14:57:17 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-12 14:57:17 (GMT)
commitf0fc13aaeaee741362ba77aa7920e8e63f687de2 (patch)
tree0dea6efb85972ee3fe7b2413970e5de6cfb137e9 /math.c
parentb063dd016cecace0ca844d1471db668f4f1d6586 (diff)
configure.in: check atan2
* configure.in (rb_cv_atan2_inf_c99): check whether runtime atan2 handles Inf as C99. ruby-core:62536] [Bug #9831] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r--math.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/math.c b/math.c
index 8911de1..78cba5a 100644
--- a/math.c
+++ b/math.c
@@ -79,8 +79,7 @@ math_atan2(VALUE obj, VALUE y, VALUE x)
return DBL2NUM(M_PI);
return DBL2NUM(-M_PI);
}
-#if !(defined(HAVE_ATAN2L) && defined(HAVE_ATAN2F))
- /* assume atan2() doesn't handle Inf as C99 */
+#ifndef ATAN2_INF_C99
if (isinf(dx) && isinf(dy)) {
/* optimization for FLONUM */
if (dx < 0.0) {