From fa327472caaa66a05ea0dcac2dd6cf58e30025e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Fri, 25 Aug 2023 14:54:38 +0900 Subject: [PATCH] snprintf could be defined include/ruby/subst.h has `#define snprintf` which breaks here. --- rubyparser.h | 1 + 1 file changed, 1 insertion(+) 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);