This commit is contained in:
CK Tan 2021-12-10 16:59:47 -08:00
parent 62320462f5
commit 310f02dd67

2
toml.c
View file

@ -65,6 +65,7 @@ static void* CALLOC(size_t nmemb, size_t sz)
}
// some old platforms define strdup macro -- drop it.
#undef strdup
#define strdup(x) error:do-not-use---use-STRDUP-instead
static char* STRDUP(const char* s)
@ -78,6 +79,7 @@ static char* STRDUP(const char* s)
return p;
}
// some old platforms define strndup macro -- drop it.
#undef strndup
#define strndup(x) error:do-not-use---use-STRNDUP-instead
static char* STRNDUP(const char* s, size_t n)