mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #2776 from cremno/undef-strndup
prevent accidental macro redefinition of strndup()
This commit is contained in:
@@ -201,6 +201,7 @@ parser_strndup(parser_state *p, const char *s, size_t len)
|
||||
b[len] = '\0';
|
||||
return b;
|
||||
}
|
||||
#undef strndup
|
||||
#define strndup(s,len) parser_strndup(p, s, len)
|
||||
|
||||
static char*
|
||||
|
||||
Reference in New Issue
Block a user