summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-math/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-08-19 11:07:26 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2013-08-19 11:07:26 +0900
commit32d0dbc8bf1daa3966c938a31f7380d53d352f11 (patch)
treead50e8ce74f59c80fcfa89d96e1db9ab6edbc208 /mrbgems/mruby-math/src
parent70132ea1df66c2621c8730f7e61d2c8a049187d4 (diff)
parent6dd9bb7c432341858b81690ad0817ef97129e040 (diff)
downloadmruby-32d0dbc8bf1daa3966c938a31f7380d53d352f11.tar.gz
mruby-32d0dbc8bf1daa3966c938a31f7380d53d352f11.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'mrbgems/mruby-math/src')
-rw-r--r--mrbgems/mruby-math/src/math.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mrbgems/mruby-math/src/math.c b/mrbgems/mruby-math/src/math.c
index bdc7767f7..4960de6dd 100644
--- a/mrbgems/mruby-math/src/math.c
+++ b/mrbgems/mruby-math/src/math.c
@@ -87,6 +87,10 @@ erfc(double x)
return one_sqrtpi*exp(-x*x)*q2;
}
+#endif
+
+#if (defined _MSC_VER && _MSC_VER < 1800) || defined __ANDROID__
+
double
log2(double x)
{