apply feature test protection to memccpy

This commit is contained in:
Rich Felker 2011-02-24 12:36:04 -05:00
parent b8ff2aaabb
commit 73d310e1d2
1 changed files with 4 additions and 1 deletions

View File

@ -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);