diff options
author | 卜部昌平 <[email protected]> | 2023-08-25 14:54:38 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2023-08-25 17:27:53 +0900 |
commit | fa327472caaa66a05ea0dcac2dd6cf58e30025e3 (patch) | |
tree | 2786f377ab4da832bbced1308d5a398dab68b746 | |
parent | 1614e5ebb2354603d5dca2a443a0bd669d21eda7 (diff) |
snprintf could be defined
include/ruby/subst.h has `#define snprintf` which breaks here.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8274
-rw-r--r-- | rubyparser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rubyparser.h b/rubyparser.h index d4f0c26f27..df5cb6139b 100644 --- a/rubyparser.h +++ b/rubyparser.h @@ -602,6 +602,7 @@ typedef struct rb_parser_config_struct { int (*long2int)(long); int (*special_const_p)(VALUE); int (*builtin_type)(VALUE); +#undef snprintf int (*snprintf)(char *str, size_t n, char const *fmt, ...); VALUE (*node_case_when_optimizable_literal)(const NODE *const node); |