summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-math
diff options
context:
space:
mode:
authorJulien Ammous <[email protected]>2013-09-23 15:14:19 +0200
committerJulien Ammous <[email protected]>2013-09-23 15:14:19 +0200
commit19f543096754cdece107336d20c573c62ec3f7e2 (patch)
tree2719d057921fdf29fc4385b99080c0ecf2899913 /mrbgems/mruby-math
parenteeac4be4ce06542361c61a42a1d413a4098467b5 (diff)
downloadmruby-19f543096754cdece107336d20c573c62ec3f7e2.tar.gz
mruby-19f543096754cdece107336d20c573c62ec3f7e2.zip
support freebsd versions without log2 function
Diffstat (limited to 'mrbgems/mruby-math')
-rw-r--r--mrbgems/mruby-math/src/math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-math/src/math.c b/mrbgems/mruby-math/src/math.c
index 4960de6dd..3daece9bc 100644
--- a/mrbgems/mruby-math/src/math.c
+++ b/mrbgems/mruby-math/src/math.c
@@ -89,7 +89,7 @@ erfc(double x)
#endif
-#if (defined _MSC_VER && _MSC_VER < 1800) || defined __ANDROID__
+#if (defined _MSC_VER && _MSC_VER < 1800) || defined __ANDROID__ || (defined __FreeBSD__ && __FreeBSD_version < 803000)
double
log2(double x)