diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-14 00:59:35 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-14 00:59:35 +0900 |
| commit | 764a791f439bb843838239909d98b26ac90a9e02 (patch) | |
| tree | 81f6a5209fe9d28e151ce4f082878324f9708f39 /src/math.c | |
| parent | 91a665905a8781373480f003c2e15cef9fa3604c (diff) | |
| download | mruby-764a791f439bb843838239909d98b26ac90a9e02.tar.gz mruby-764a791f439bb843838239909d98b26ac90a9e02.zip | |
make Math module optional
Diffstat (limited to 'src/math.c')
| -rw-r--r-- | src/math.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/math.c b/src/math.c index 1de9c0d8f..3898146b6 100644 --- a/src/math.c +++ b/src/math.c @@ -5,6 +5,8 @@ */ #include "mruby.h" + +#ifdef INCLUDE_MATH #include <math.h> #define domain_error(msg) \ @@ -679,3 +681,4 @@ mrb_init_math(mrb_state *mrb) mrb_define_module_function(mrb, mrb_math, "erf", math_erf, ARGS_REQ(1)); mrb_define_module_function(mrb, mrb_math, "erfc", math_erfc, ARGS_REQ(1)); } +#endif /* INCLUDE_MATH */ |
