提交 73d310e1 编写于 作者: R Rich Felker

apply feature test protection to memccpy

上级 b8ff2aaa
......@@ -17,7 +17,6 @@ extern "C" {
void *memcpy (void *, const void *, size_t);
void *memmove (void *, const void *, size_t);
void *memccpy (void *, const void *, int, size_t);
void *memset (void *, int, size_t);
int memcmp (const void *, const void *, size_t);
void *memchr (const void *, int, size_t);
......@@ -59,6 +58,10 @@ char *strdup (const char *);
char *strndup (const char *, size_t);
#endif
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
void *memccpy (void *, const void *, int, size_t);
#endif
#ifdef _BSD_SOURCE
size_t strlcat (char *, const char *, size_t);
size_t strlcpy (char *, const char *, size_t);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册