Avoid compiling fmt_fp.c if MRB_WITHOUT_FLOAT is set; #3827

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-11-04 12:12:52 +09:00
parent de2363a9f0
commit fef4b394a7
+2
View File
@@ -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