Commit 8c838de4 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

Time class made optinal

parent 9e78fea7
......@@ -39,6 +39,9 @@ typedef intptr_t mrb_sym;
#define INCLUDE_MATH /* use (non ISO) Math module */
//#undef INCLUDE_MATH /* not use (non ISO) Math module */
#define INCLUDE_TIME /* use Time module */
//#undef INCLUDE_TIME /* not use Time module */
#ifdef MRUBY_DEBUG_BUILD
# define PARSER_DUMP
#endif
......
......@@ -56,7 +56,9 @@ mrb_init_core(mrb_state *mrb)
#endif
mrb_init_exception(mrb);
mrb_init_print(mrb);
#ifdef INCLUDE_TIME
mrb_init_time(mrb);
#endif
#ifdef INCLUDE_MATH
mrb_init_math(mrb);
#endif
......
......@@ -6,6 +6,7 @@
#include "mruby.h"
#ifdef INCLUDE_TIME
#include <string.h>
#include <stdio.h>
#include <time.h>
......@@ -742,3 +743,5 @@ mrb_init_time(mrb_state *mrb)
utc_offset(15.2.19.7.29)
*/
}
#endif
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