summaryrefslogtreecommitdiff
path: root/rubyparser.h
diff options
context:
space:
mode:
author卜部昌平 <[email protected]>2023-08-25 14:54:38 +0900
committer卜部昌平 <[email protected]>2023-08-25 17:27:53 +0900
commitfa327472caaa66a05ea0dcac2dd6cf58e30025e3 (patch)
tree2786f377ab4da832bbced1308d5a398dab68b746 /rubyparser.h
parent1614e5ebb2354603d5dca2a443a0bd669d21eda7 (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
Diffstat (limited to 'rubyparser.h')
-rw-r--r--rubyparser.h1
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);