mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix build
This commit is contained in:
@@ -46,7 +46,6 @@
|
||||
/* -DDISABLE_XXXX to drop following features */
|
||||
//#define DISABLE_SPRINTF /* Kernel.sprintf method */
|
||||
//#define DISABLE_MATH /* Math functions */
|
||||
//#define DISABLE_TIME /* Time class */
|
||||
//#define DISABLE_STRUCT /* Struct class */
|
||||
//#define DISABLE_STDIO /* use of stdio */
|
||||
|
||||
@@ -83,18 +82,12 @@
|
||||
typedef short mrb_sym;
|
||||
|
||||
/* define ENABLE_XXXX from DISABLE_XXX */
|
||||
#ifndef DISABLE_REGEXP
|
||||
#define ENABLE_REGEXP
|
||||
#endif
|
||||
#ifndef DISABLE_SPRINTF
|
||||
#define ENABLE_SPRINTF
|
||||
#endif
|
||||
#ifndef DISABLE_MATH
|
||||
#define ENABLE_MATH
|
||||
#endif
|
||||
#ifndef DISABLE_TIME
|
||||
#define ENABLE_TIME
|
||||
#endif
|
||||
#ifndef DISABLE_STRUCT
|
||||
#define ENABLE_STRUCT
|
||||
#endif
|
||||
|
||||
@@ -24,7 +24,6 @@ void mrb_init_struct(mrb_state*);
|
||||
void mrb_init_gc(mrb_state*);
|
||||
void mrb_init_regexp(mrb_state*);
|
||||
void mrb_init_print(mrb_state*);
|
||||
void mrb_init_time(mrb_state*);
|
||||
void mrb_init_math(mrb_state*);
|
||||
void mrb_init_mrblib(mrb_state*);
|
||||
void mrb_init_mrbgems(mrb_state*);
|
||||
@@ -58,9 +57,6 @@ mrb_init_core(mrb_state *mrb)
|
||||
#ifdef ENABLE_STDIO
|
||||
mrb_init_print(mrb); DONE;
|
||||
#endif
|
||||
#ifdef ENABLE_TIME
|
||||
mrb_init_time(mrb); DONE;
|
||||
#endif
|
||||
#ifdef ENABLE_MATH
|
||||
mrb_init_math(mrb); DONE;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user