summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-11 12:30:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-11 12:30:24 +0000
commit3c9e6f1e624031b4736941804ad1f25f685b3999 (patch)
treeac88be370e39f9bd5508d45cc77841e9f445fcfd /win32/win32.c
parent4997572f7ee26f09a6983b35593766f5bcbbd4a8 (diff)
win32.c: fix infinite recursion
* win32/win32.c (rb_w32_pow): undef pow to get rid of infinite recursive call. re-fix [Bug #8495]. [ruby-core:55923] [Bug #8621] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 34bd15e..291dc2a 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -6969,6 +6969,7 @@ rb_w32_unwrap_io_handle(int fd)
double
rb_w32_pow(double x, double y)
{
+#undef pow
double r;
unsigned int default_control = _controlfp(0, 0);
_controlfp(_PC_64, _MCW_PC);