summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/mruby.h2
-rw-r--r--src/symbol.c6
2 files changed, 2 insertions, 6 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 972bf3a25..408623e00 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -269,7 +269,9 @@ typedef struct mrb_state {
mrb_sym symidx;
struct kh_n2s *name2sym; /* symbol table */
struct kh_s2n *sym2name; /* reverse symbol table */
+#ifdef INCLUDE_REGEXP
struct RNode *local_svar;/* regexp */
+#endif
struct RClass *eException_class;
struct RClass *eStandardError_class;
diff --git a/src/symbol.c b/src/symbol.c
index 164e492ea..b4ffc19e6 100644
--- a/src/symbol.c
+++ b/src/symbol.c
@@ -16,12 +16,6 @@
#include "mruby/variable.h"
#include <stdio.h>
-#ifdef INCLUDE_REGEXP
-#include "re.h"
-#include "regex.h"
-#include "st.h"
-#endif
-
/* ------------------------------------------------------ */
KHASH_MAP_INIT_INT(s2n, const char*);
KHASH_MAP_INIT_STR(n2s, mrb_sym);