Commit 84b24506 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2553 from bggd/patch-6

Fix build failed on VS2012
parents e3d92d8c dc1dcba9
......@@ -21,6 +21,8 @@ domain_error(mrb_state *mrb, const char *func)
/* math functions not provided by Microsoft Visual C++ 2012 or older */
#if defined _MSC_VER && _MSC_VER < 1800
#include <float.h>
#define MATH_TOLERANCE 1E-12
double
......@@ -39,7 +41,7 @@ asinh(double x)
ya = log(xa + sqrt(xa*xa + 1.0));
}
y = copysign(ya, x);
y = _copysign(ya, x);
return y;
}
......@@ -88,7 +90,7 @@ cbrt(double x)
odd function */
xa = fabs(x);
ya = pow(xa, 1.0/3.0);
y = copysign(ya, x);
y = _copysign(ya, x);
return y;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment