Commit 8789a5d5 authored by cremno's avatar cremno

prevent accidental macro redefinition of strndup()

parent 41e69319
...@@ -201,6 +201,7 @@ parser_strndup(parser_state *p, const char *s, size_t len) ...@@ -201,6 +201,7 @@ parser_strndup(parser_state *p, const char *s, size_t len)
b[len] = '\0'; b[len] = '\0';
return b; return b;
} }
#undef strndup
#define strndup(s,len) parser_strndup(p, s, len) #define strndup(s,len) parser_strndup(p, s, len)
static char* static char*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment