Merge pull request #5522 from dearblue/pack-EOF

Fixed compilation error of "mruby-pack" with `MRB_NO_STDIO`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-08-09 08:39:12 +09:00
committed by GitHub
+4
View File
@@ -18,6 +18,10 @@
#define INT_OVERFLOW_P(n) ((n) < MRB_INT_MIN || (n) > MRB_INT_MAX)
#define UINT_OVERFLOW_P(n) ((n) > MRB_INT_MAX)
#ifndef EOF
# define EOF (-1) /* for MRB_NO_STDIO */
#endif
struct tmpl {
mrb_value str;
int idx;