mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
forgot to replace INLCUDE_KERNEL_SPRINTF by ENABLE_KERNEL_SPRINTF
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+2
-2
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user