summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-18 13:20:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-18 13:20:39 +0000
commit3360dfd294a46879757fd587836e0c897db7f330 (patch)
treea912e54bcdd2e471a0573620db7730a4d9c617cb /win32/win32.c
parent3d6ecd45c7904a18687adf151ee89c1f37ba5b9c (diff)
win32.c: fix infinite recursion
* win32/win32.c: include "missing/nextafter.c" and address finite() and isnan() macros, to get rid of infinite recursion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 1ca677b..4ebf5c8 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -7214,3 +7214,7 @@ rb_w32_pow(double x, double y)
return r;
}
#endif
+
+#if RUBY_MSVCRT_VERSION < 120
+#include "missing/nextafter.c"
+#endif