mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-rational/rational.c: wrap prototype with mrb_float
When `MRB_NO_FLOAT` is defined, `mrb_float` is not defined.
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
#include <mruby/numeric.h>
|
||||
#include <mruby/presym.h>
|
||||
|
||||
#ifndef MRB_NO_FLOAT
|
||||
mrb_value mrb_complex_new(mrb_state *, mrb_float, mrb_float);
|
||||
#endif
|
||||
mrb_bool mrb_complex_eq(mrb_state *mrb, mrb_value, mrb_value);
|
||||
mrb_value mrb_complex_add(mrb_state *mrb, mrb_value, mrb_value);
|
||||
mrb_value mrb_complex_sub(mrb_state *mrb, mrb_value, mrb_value);
|
||||
|
||||
Reference in New Issue
Block a user