summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/locale/locale.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
index a204d3412..953da1376 100644
--- a/newlib/libc/locale/locale.c
+++ b/newlib/libc/locale/locale.c
@@ -882,9 +882,11 @@ restart:
case LC_TIME:
ret = __time_load_locale (locale, (void *) l_wctomb, charset);
break;
+#endif /* __HAVE_LOCALE_INFO__ */
default:
break;
}
+#ifdef __HAVE_LOCALE_INFO__
if (ret)
FAIL;
#endif /* __HAVE_LOCALE_INFO__ */