diff options
Diffstat (limited to 'string')
-rw-r--r-- | string/string.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/string/string.h b/string/string.h index 4560f612b5..99fb2d83aa 100644 --- a/string/string.h +++ b/string/string.h @@ -138,12 +138,14 @@ extern char *strstr __P ((__const char *__haystack, __const char *__needle)); /* Divide S into tokens separated by characters in DELIM. */ extern char *strtok __P ((char *__s, __const char *__delim)); -#ifdef __USE_GNU +#if defined __USE_POSIX || defined __USE_REENTRANT /* Divide S into tokens separated by characters in DELIM. Information passed between calls are stored in SAVE_PTR. */ extern char *strtok_r __P ((char *__s, __const char *__delim, char **__save_ptr)); +#endif +#ifdef __USE_GNU /* Find the first occurrence of NEEDLE in HAYSTACK. NEEDLE is NEEDLELEN bytes long; HAYSTACK is HAYSTACKLEN bytes long. */ |