From 1cea6189a33dafcd77d5668a2a623ed01a4dfe1c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 9 Feb 2010 08:58:38 +0000 Subject: * libc/locale/lmessages.c (__messages_load_locale): Take additional parameters for wide char to multibyte conversion. Call __set_lc_messages_from_win on Cygwin. * libc/locale/lmessages.h: Make C++-safe. (__messages_load_locale): Change declaration. * libc/locale/lmonetary.c (__monetary_load_locale): Use _monetary_locale_buf as buffer pointer. * libc/locale/lnumeric.c (__numeric_load_locale): Use _numeric_locale_buf as buffer pointer. * libc/locale/timelocal.c (__time_load_locale): Use time_locale_buf as buffer pointer. * libc/locale/locale.c (loadlocale): Enable loading LC_MESSAGES data on Cygwin. --- newlib/libc/locale/lmessages.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'newlib/libc/locale/lmessages.h') diff --git a/newlib/libc/locale/lmessages.h b/newlib/libc/locale/lmessages.h index ee690ae7c..b1e14b7c9 100644 --- a/newlib/libc/locale/lmessages.h +++ b/newlib/libc/locale/lmessages.h @@ -29,6 +29,10 @@ #ifndef _LMESSAGES_H_ #define _LMESSAGES_H_ +#include + +__BEGIN_DECLS + struct lc_messages_T { const char *yesexpr; const char *noexpr; @@ -37,6 +41,8 @@ struct lc_messages_T { }; struct lc_messages_T *__get_current_messages_locale(void); -int __messages_load_locale(const char *); +int __numeric_load_locale(const char *, void *, const char *); + +__END_DECLS #endif /* !_LMESSAGES_H_ */ -- cgit v1.2.3