From 5c38edaeca35c3b3631d28acc43c96f3970d9d48 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Mon, 7 Mar 2011 17:39:14 +0100 Subject: locale.c: export newlocale only if XLOCALE is defined newlocale is used by setlocale, so we need the hidden version even if XLOCALE is not defined Signed-off-by: Peter S. Mazinger --- libc/misc/locale/locale.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc/misc') diff --git a/libc/misc/locale/locale.c b/libc/misc/locale/locale.c index e49cd3ba5..40303ab14 100644 --- a/libc/misc/locale/locale.c +++ b/libc/misc/locale/locale.c @@ -1303,7 +1303,9 @@ __locale_t newlocale(int category_mask, const char *locale, __locale_t base) return base; } +#ifdef __UCLIBC_HAS_XLOCALE__ libc_hidden_def(newlocale) +#endif #endif /**********************************************************************/ -- cgit v1.2.3