summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-mrbc
diff options
context:
space:
mode:
authordearblue <[email protected]>2020-03-08 21:34:23 +0900
committerdearblue <[email protected]>2020-03-08 21:57:17 +0900
commit67606170e3ca001ecd6885dac957f4bbdb094bad (patch)
tree5599b7521bcf5b745955bd2af80d6bc3a5d7fb20 /mrbgems/mruby-bin-mrbc
parentcc1db2d1172de6187467372ad6f175eccdd97d59 (diff)
downloadmruby-67606170e3ca001ecd6885dac957f4bbdb094bad.tar.gz
mruby-67606170e3ca001ecd6885dac957f4bbdb094bad.zip
Add configuration guard for `MRB_DISABLE_STDIO`
ref #4576 and ref #4947 * Need MRBAPI functions without `MRB_DISABLE_STDIO`: * mrbgems/mruby-bin-debugger * mrbgems/mruby-bin-mirb * mrbgems/mruby-bin-mrbc * mrbgems/mruby-bin-mruby * mrbgems/mruby-bin-strip * Need `stdio.h`: * mrbgems/mruby-io * mrbgems/mruby-print * Need `snprintf()` in `stdio.h`: * mrbgems/mruby-pack * mrbgems/mruby-sprintf
Diffstat (limited to 'mrbgems/mruby-bin-mrbc')
-rw-r--r--mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c b/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c
index bda8c7b65..bdc3925b0 100644
--- a/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c
+++ b/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c
@@ -1,6 +1,11 @@
+#include <mruby.h>
+
+#ifdef MRB_DISABLE_STDIO
+# error mruby-bin-mrbc conflicts 'MRB_DISABLE_STDIO' configuration in your 'build_config.rb'
+#endif
+
#include <stdlib.h>
#include <string.h>
-#include <mruby.h>
#include <mruby/compile.h>
#include <mruby/dump.h>
#include <mruby/proc.h>