From 7ef90f7f9d71463caddaeb2ee7f42b3f06bc138a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 16 Aug 2016 13:54:32 +0200 Subject: [PATCH] __localeconv_l: Always define locale variable lconv Signed-off-by: Corinna Vinschen --- newlib/libc/locale/localeconv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/locale/localeconv.c b/newlib/libc/locale/localeconv.c index 623181cf4..1f8816dfd 100644 --- a/newlib/libc/locale/localeconv.c +++ b/newlib/libc/locale/localeconv.c @@ -5,8 +5,8 @@ struct lconv * __localeconv_l (struct __locale_t *locale) { -#ifdef __HAVE_LOCALE_INFO__ struct lconv *lconv = &locale->lconv; +#ifdef __HAVE_LOCALE_INFO__ const struct lc_numeric_T *n = __get_numeric_locale (locale); const struct lc_monetary_T *m = __get_monetary_locale (locale);