From 5bdf8cfa49d2ee9bb3c7c37ac59cc118371abb3b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 29 Jul 2016 09:52:50 +0200 Subject: [PATCH] setlocale/localeconv are *not* POSIX-1.2008 Signed-off by: Corinna Vinschen --- newlib/libc/include/locale.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/newlib/libc/include/locale.h b/newlib/libc/include/locale.h index f74e9c516..6b3b78830 100644 --- a/newlib/libc/include/locale.h +++ b/newlib/libc/include/locale.h @@ -72,26 +72,26 @@ char *_EXFUN(_setlocale_r,(struct _reent *, int, const char *)); struct lconv *_EXFUN(_localeconv_r,(struct _reent *)); #if __POSIX_VISIBLE >= 200809 - 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); +#endif /* __POSIX_VISIBLE >= 200809 */ #ifndef _REENT_ONLY char *_EXFUN(setlocale,(int, const char *)); struct lconv *_EXFUN(localeconv,(void)); +#if __POSIX_VISIBLE >= 200809 locale_t newlocale (int, const char *, locale_t); void freelocale (locale_t); locale_t duplocale (locale_t); locale_t uselocale (locale_t); +#endif /* __POSIX_VISIBLE >= 200809 */ #endif /* _REENT_ONLY */ -#endif /* __POSIX_VISIBLE >= 200809 */ - _END_STD_C #endif /* _LOCALE_H_ */ -- 2.43.5