replace prototype for basename in string.h with non-prototype declaration
[musl] / include / string.h
index 00c8e8f..4aa930e 100644 (file)
@@ -13,6 +13,11 @@ extern "C" {
 #endif
 
 #define __NEED_size_t
+#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
+ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
+#define __NEED_locale_t
+#endif
+
 #include <bits/alltypes.h>
 
 void *memcpy (void *, const void *, size_t);
@@ -57,6 +62,9 @@ size_t strnlen (const char *, size_t);
 char *strdup (const char *);
 char *strndup (const char *, size_t);
 char *strsignal(int);
+char *strerror_l (int, locale_t);
+int strcoll_l (const char *, const char *, locale_t);
+size_t strxfrm_l (char *, const char *, size_t, locale_t);
 #endif
 
 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
@@ -69,10 +77,15 @@ size_t strlcpy (char *, const char *, size_t);
 #endif
 
 #ifdef _GNU_SOURCE
+int strverscmp (const char *, const char *);
 int strcasecmp (const char *, const char *);
 int strncasecmp (const char *, const char *, size_t);
 char *strchrnul(const char *, int);
 char *strcasestr(const char *, const char *);
+char *strsep(char **, const char *);
+void *memrchr(const void *, int, size_t);
+void *mempcpy(void *, const void *, size_t);
+char *basename();
 #endif
 
 #ifdef __cplusplus