diff options
-rw-r--r-- | rubyparser.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rubyparser.h b/rubyparser.h index 708184aa52..90c3939f12 100644 --- a/rubyparser.h +++ b/rubyparser.h @@ -606,6 +606,9 @@ typedef struct rb_parser_config_struct { int (*builtin_type)(VALUE); #undef snprintf int (*snprintf)(char *str, size_t n, char const *fmt, ...); +#ifdef RUBY_SUBST_H +# define snprintf(...) ruby_snprintf(__VA_ARGS__) +#endif VALUE (*node_case_when_optimizable_literal)(const NODE *const node); |