mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #5522 from dearblue/pack-EOF
Fixed compilation error of "mruby-pack" with `MRB_NO_STDIO`
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user