summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-print
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-print
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-print')
-rw-r--r--mrbgems/mruby-print/src/print.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mrbgems/mruby-print/src/print.c b/mrbgems/mruby-print/src/print.c
index 04c7c82c6..66d070f60 100644
--- a/mrbgems/mruby-print/src/print.c
+++ b/mrbgems/mruby-print/src/print.c
@@ -1,4 +1,9 @@
#include <mruby.h>
+
+#ifdef MRB_DISABLE_STDIO
+# error print conflicts 'MRB_DISABLE_STDIO' configuration in your 'build_config.rb'
+#endif
+
#include <mruby/string.h>
#include <string.h>
#include <stdlib.h>