Skip to content

Commit

Permalink
snprintf could be defined
Browse files Browse the repository at this point in the history
include/ruby/subst.h has `#define snprintf` which breaks here.
  • Loading branch information
shyouhei committed Aug 25, 2023
1 parent 1614e5e commit fa32747
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rubyparser.h
Expand Up @@ -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);
Expand Down

0 comments on commit fa32747

Please sign in to comment.