diff options
| author | wanabe <[email protected]> | 2013-08-19 01:34:07 +0900 |
|---|---|---|
| committer | wanabe <[email protected]> | 2013-08-19 01:34:07 +0900 |
| commit | c9ac35f3bae25c296df787d14a0d532430ee9ee5 (patch) | |
| tree | 808e57f5925069c2c844a7c97f65194a1e516c92 /mrbgems/mruby-math | |
| parent | 96ef9925e98eee9c4355c581633be85f21a28ef5 (diff) | |
| download | mruby-c9ac35f3bae25c296df787d14a0d532430ee9ee5.tar.gz mruby-c9ac35f3bae25c296df787d14a0d532430ee9ee5.zip | |
android doesn't have log2
Diffstat (limited to 'mrbgems/mruby-math')
| -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) { |
