diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-02-24 12:36:04 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-02-24 12:36:04 -0500 |
commit | 73d310e1d2b76cd14b9913bbc3d8e75be91be5a6 (patch) | |
tree | 4e9c156ffa1a9f3ee614394f4c0dc2dc2aa01f7a /include | |
parent | b8ff2aaabb55521686179464593553fe1c91b2e2 (diff) | |
download | musl-73d310e1d2b76cd14b9913bbc3d8e75be91be5a6.zip musl-73d310e1d2b76cd14b9913bbc3d8e75be91be5a6.tar.gz musl-73d310e1d2b76cd14b9913bbc3d8e75be91be5a6.tar.bz2 |
apply feature test protection to memccpy
Diffstat (limited to 'include')
-rw-r--r-- | include/string.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h index fb18537..dfe142a 100644 --- a/include/string.h +++ b/include/string.h @@ -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); |