summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-07 17:39:14 +0100
committerPeter S. Mazinger <ps.m@gmx.net>2011-03-07 17:39:14 +0100
commit5c38edaeca35c3b3631d28acc43c96f3970d9d48 (patch)
tree5f6c0d091adb56b2800e0afc5b2dfbcc4eab1edd /libc/misc
parent19373021defb3b917ba9617c3f45b22ab8da26dd (diff)
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 <ps.m@gmx.net>
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/locale/locale.c2
1 files changed, 2 insertions, 0 deletions
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
/**********************************************************************/