summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-10-30 01:24:23 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-10-30 01:24:23 -0700
commit73f6d7080ea6d582c046657a64374c8422b34b32 (patch)
treeed610676ccbd5c7d54dddc3eaa0ddf801ab91e44
parent888ddf1c84faae2e4e5376036bbda2753d7b01a1 (diff)
parent19f543096754cdece107336d20c573c62ec3f7e2 (diff)
downloadmruby-73f6d7080ea6d582c046657a64374c8422b34b32.tar.gz
mruby-73f6d7080ea6d582c046657a64374c8422b34b32.zip
Merge pull request #1510 from schmurfy/freebsd_fix
fixed compilation on freebsd releases witout log2 function
-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)