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>
This commit is contained in:
Corinna Vinschen 2016-08-25 09:53:01 +02:00
parent 448b46397d
commit 14228e2d0f
1 changed files with 4 additions and 4 deletions

View File

@ -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