瀏覽代碼

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...
Rich Felker 13 年之前
父節點
當前提交
1ba28b90d6
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      include/string.h

+ 1 - 0
include/string.h

@@ -85,6 +85,7 @@ 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(char *);
 #endif
 
 #ifdef __cplusplus