diff options
Diffstat (limited to 'newlib/libc/include/string.h')
-rw-r--r-- | newlib/libc/include/string.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h index 56c7fc25b..549d51184 100644 --- a/newlib/libc/include/string.h +++ b/newlib/libc/include/string.h @@ -16,6 +16,11 @@ #define __need_NULL #include <stddef.h> +#if __POSIX_VISIBLE >= 200809 || defined (_COMPILING_NEWLIB) +struct __locale_t; +typedef struct __locale_t *locale_t; +#endif + _BEGIN_STD_C _PTR _EXFUN(memchr,(const _PTR, int, size_t)); @@ -43,6 +48,14 @@ char *_EXFUN(strtok,(char *__restrict, const char *__restrict)); #endif size_t _EXFUN(strxfrm,(char *__restrict, const char *__restrict, size_t)); +#if __POSIX_VISIBLE >= 200809 +extern int strcasecmp_l (const char *, const char *, locale_t); +extern int strncasecmp_l (const char *, const char *, size_t, locale_t); +extern int strcoll_l (const char *, const char *, locale_t); +extern size_t strxfrm_l (char *__restrict, const char *__restrict, size_t, + locale_t); +#endif + #if __MISC_VISIBLE || __POSIX_VISIBLE char *_EXFUN(strtok_r,(char *__restrict, const char *__restrict, char **__restrict)); #endif |