From 068cbef61c8f685d64f888ad5bc9847829610065 Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Mon, 7 Jan 2013 16:14:45 +0900 Subject: Add check for using cdump with DISABLE_STDIO option. --- include/mruby/cdump.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 +#ifdef DISABLE_STDIO +# error "Configuration conflict. Can't use with DISABLE_STDIO option." +#else +# include +#endif int mrb_cdump_irep(mrb_state *mrb, int n, FILE *f,const char *initname); -- cgit v1.2.3