about summary refs log tree commit diff
path: root/include/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h
index fb185372..dfe142a2 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);