diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-08-25 10:53:01 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-08-25 10:53:01 +0300 |
commit | 14228e2d0fe69ff12290f8859d14eecb4095396f (patch) | |
tree | 910ef891e493e8de736d789fa633e82fdefe3269 /newlib | |
parent | 448b46397dcea17e97783b0311b6d9af6878001c (diff) |
Use struct __locale_t * for reentrent locale functions
This fixes a build problem since locale_t is only defined if
__POSIX_VISIBLE >= 200809.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/include/locale.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/newlib/libc/include/locale.h b/newlib/libc/include/locale.h index 4fb78755e..446dbd9d4 100644 --- a/newlib/libc/include/locale.h +++ b/newlib/libc/include/locale.h @@ -71,10 +71,10 @@ struct _reent; char *_EXFUN(_setlocale_r,(struct _reent *, int, const char *)); struct lconv *_EXFUN(_localeconv_r,(struct _reent *)); -locale_t _newlocale_r (struct _reent *, int, const char *, locale_t); -void _freelocale_r (struct _reent *, locale_t); -locale_t _duplocale_r (struct _reent *, locale_t); -locale_t _uselocale_r (struct _reent *, locale_t); +locale_t _newlocale_r (struct _reent *, int, const char *, struct __locale_t *); +void _freelocale_r (struct _reent *, struct __locale_t *); +locale_t _duplocale_r (struct _reent *, struct __locale_t *); +locale_t _uselocale_r (struct _reent *, struct __locale_t *); #ifndef _REENT_ONLY |