mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Avoid compiling fmt_fp.c if MRB_WITHOUT_FLOAT is set; #3827
This commit is contained in:
@@ -36,6 +36,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#include <mruby.h>
|
||||
#include <mruby/string.h>
|
||||
|
||||
#ifndef MRB_WITHOUT_FLOAT
|
||||
struct fmt_args {
|
||||
mrb_state *mrb;
|
||||
mrb_value str;
|
||||
@@ -370,3 +371,4 @@ mrb_float_to_str(mrb_state *mrb, mrb_value flo, const char *fmt)
|
||||
}
|
||||
return f.str;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user