declare basename in string.h when _GNU_SOURCE is defined

note that it still will have the standards-conformant behavior, not
the GNU behavior. but at least this prevents broken code from ending
up with truncated pointers due to implicit declarations...
This commit is contained in:
Rich Felker 2012-02-07 13:10:30 -05:00
parent a591e0383a
commit 1ba28b90d6
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ char *strcasestr(const char *, const char *);
char *strsep(char **, const char *); char *strsep(char **, const char *);
void *memrchr(const void *, int, size_t); void *memrchr(const void *, int, size_t);
void *mempcpy(void *, const void *, size_t); void *mempcpy(void *, const void *, size_t);
char *basename(char *);
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus