summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDaniel Bovensiepen <[email protected]>2012-12-08 13:26:50 +0800
committerDaniel Bovensiepen <[email protected]>2012-12-08 13:26:50 +0800
commit82446cc74795285d99fbb9f15cefb25c69c690d8 (patch)
treeeef17fe56f2ecbc56f400e2e966654b7da8e9217
parentcce6c46f1781125f633877e7e4df9564651fa0f9 (diff)
downloadmruby-82446cc74795285d99fbb9f15cefb25c69c690d8.tar.gz
mruby-82446cc74795285d99fbb9f15cefb25c69c690d8.zip
Use only DISABLE_GEMS for feature request in include/mrbconf.h
-rw-r--r--src/init.c2
-rw-r--r--test/init_mrbtest.c2
-rw-r--r--tools/mrbc/mrbc.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/init.c b/src/init.c
index eb93fd0a7..48008b150 100644
--- a/src/init.c
+++ b/src/init.c
@@ -66,7 +66,7 @@ mrb_init_core(mrb_state *mrb)
mrb_init_math(mrb); DONE;
#endif
mrb_init_mrblib(mrb); DONE;
-#ifdef ENABLE_GEMS
+#ifndef DISABLE_GEMS
mrb_init_mrbgems(mrb); DONE;
#endif
}
diff --git a/test/init_mrbtest.c b/test/init_mrbtest.c
index 47b14c325..569fde302 100644
--- a/test/init_mrbtest.c
+++ b/test/init_mrbtest.c
@@ -11,7 +11,7 @@ void
mrb_init_mrbtest(mrb_state *mrb)
{
mrb_load_irep(mrb, mrbtest_irep);
-#ifdef ENABLE_GEMS
+#ifndef DISABLE_GEMS
mrb_load_irep(mrb, mrbgemtest_irep);
#endif
if (mrb->exc) {
diff --git a/tools/mrbc/mrbc.c b/tools/mrbc/mrbc.c
index 5a92cd479..4dc9871c7 100644
--- a/tools/mrbc/mrbc.c
+++ b/tools/mrbc/mrbc.c
@@ -226,7 +226,7 @@ mrb_init_mrblib(mrb_state *mrb)
{
}
-#ifdef ENABLE_GEMS
+#ifndef DISABLE_GEMS
void
mrb_init_mrbgems(mrb_state *mrb)
{