Time class made optinal

This commit is contained in:
Yukihiro Matsumoto
2012-06-15 14:07:24 +09:00
parent 9e78fea7b3
commit 8c838de4a8
3 changed files with 8 additions and 0 deletions
+3
View File
@@ -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
+2
View File
@@ -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
+3
View File
@@ -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