summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
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 8911de1360..78cba5ab0c 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) {