From f0fc13aaeaee741362ba77aa7920e8e63f687de2 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 12 May 2014 14:57:17 +0000 Subject: 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 --- math.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'math.c') 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) { -- cgit v1.2.1