Commit d8e0fbab authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

forgot to replace INLCUDE_KERNEL_SPRINTF by ENABLE_KERNEL_SPRINTF

parent 3d5c9521
......@@ -1354,7 +1354,7 @@ mrb_init_kernel(mrb_state *mrb)
mrb_define_method(mrb, krn, "singleton_methods", mrb_obj_singleton_methods_m, ARGS_ANY()); /* 15.3.1.3.45 */
mrb_define_method(mrb, krn, "to_s", mrb_any_to_s, ARGS_NONE()); /* 15.3.1.3.46 */
#ifdef INCLUDE_KERNEL_SPRINTF
#ifdef ENABLE_KERNEL_SPRINTF
mrb_define_method(mrb, krn, "sprintf", mrb_f_sprintf, ARGS_ANY()); /* in sprintf.c */
mrb_define_method(mrb, krn, "format", mrb_f_sprintf, ARGS_ANY()); /* in sprintf.c */
#endif
......
......@@ -6,7 +6,7 @@
#include "mruby.h"
#ifdef INCLUDE_KERNEL_SPRINTF
#ifdef ENABLE_KERNEL_SPRINTF
#include <stdio.h>
#include <string.h>
......@@ -1082,4 +1082,4 @@ fmt_setup(char *buf, size_t size, int c, int flags, int width, int prec)
*buf = '\0';
}
#endif //INCLUDE_KERNEL_SPRINTF
#endif /* ENABLE_KERNEL_SPRINTF */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment