aboutsummaryrefslogtreecommitdiffstats
path: root/math.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-12 10:31:52 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-12 10:31:52 +0000
commit0c160511142233f076a6353784de99f3d73e183d (patch)
tree592c6156fede747a4ad7390f1b425e1406e3cd64 /math.c
parent0558ba4e7b7b51a766cd675df542f2d0d9265e30 (diff)
downloadruby-0c160511142233f076a6353784de99f3d73e183d.tar.gz
Math.gamma(Float::INFINITY) should return +INF
* math.c (tgamma): it seems that the implementaion of mswin has similar problem with mingw. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58685 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 7be5115b7e..245cdcfb01 100644
--- a/math.c
+++ b/math.c
@@ -778,7 +778,7 @@ math_erfc(VALUE unused_obj, VALUE x)
return DBL2NUM(erfc(Get_Double(x)));
}
-#if defined __MINGW32__
+#if defined _WIN32
static inline double
ruby_tgamma(const double d)
{