summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-01-07 21:32:37 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2013-01-07 21:32:37 -0800
commit0f98227dfc86419e4b1cb6b748da0fe54203063d (patch)
tree5c9d3fc137e4b908d5363725e356ab3b0c5300bc
parentc8d117fde16248b217ee56b0f42dc9feac626458 (diff)
parent068cbef61c8f685d64f888ad5bc9847829610065 (diff)
downloadmruby-0f98227dfc86419e4b1cb6b748da0fe54203063d.tar.gz
mruby-0f98227dfc86419e4b1cb6b748da0fe54203063d.zip
Merge pull request #702 from monaka/pr-check-cdump-with-disable-stdio
Add check for using cdump with DISABLE_STDIO option.
-rw-r--r--include/mruby/cdump.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/mruby/cdump.h b/include/mruby/cdump.h
index 14a365081..6afbb985e 100644
--- a/include/mruby/cdump.h
+++ b/include/mruby/cdump.h
@@ -12,7 +12,11 @@ extern "C" {
#endif
#include "mruby.h"
-#include <stdio.h>
+#ifdef DISABLE_STDIO
+# error "Configuration conflict. Can't use with DISABLE_STDIO option."
+#else
+# include <stdio.h>
+#endif
int mrb_cdump_irep(mrb_state *mrb, int n, FILE *f,const char *initname);