diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-18 19:07:03 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-18 19:07:03 -0700 |
| commit | 6dd9bb7c432341858b81690ad0817ef97129e040 (patch) | |
| tree | 808e57f5925069c2c844a7c97f65194a1e516c92 | |
| parent | 96ef9925e98eee9c4355c581633be85f21a28ef5 (diff) | |
| parent | c9ac35f3bae25c296df787d14a0d532430ee9ee5 (diff) | |
| download | mruby-6dd9bb7c432341858b81690ad0817ef97129e040.tar.gz mruby-6dd9bb7c432341858b81690ad0817ef97129e040.zip | |
Merge pull request #1480 from wanabe/patch-1
android doesn't have log2
| -rw-r--r-- | mrbgems/mruby-math/src/math.c | 4 |
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) { |
