prevent accidental macro redefinition of strndup()

This commit is contained in:
cremno
2015-04-28 17:51:34 +02:00
parent 41e6931987
commit 8789a5d520
+1
View File
@@ -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*