comment
This commit is contained in:
parent
62320462f5
commit
310f02dd67
1 changed files with 2 additions and 0 deletions
2
toml.c
2
toml.c
|
@ -65,6 +65,7 @@ static void* CALLOC(size_t nmemb, size_t sz)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// some old platforms define strdup macro -- drop it.
|
||||||
#undef strdup
|
#undef strdup
|
||||||
#define strdup(x) error:do-not-use---use-STRDUP-instead
|
#define strdup(x) error:do-not-use---use-STRDUP-instead
|
||||||
static char* STRDUP(const char* s)
|
static char* STRDUP(const char* s)
|
||||||
|
@ -78,6 +79,7 @@ static char* STRDUP(const char* s)
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// some old platforms define strndup macro -- drop it.
|
||||||
#undef strndup
|
#undef strndup
|
||||||
#define strndup(x) error:do-not-use---use-STRNDUP-instead
|
#define strndup(x) error:do-not-use---use-STRNDUP-instead
|
||||||
static char* STRNDUP(const char* s, size_t n)
|
static char* STRNDUP(const char* s, size_t n)
|
||||||
|
|
Loading…
Reference in a new issue