Browse Source

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>
Peter S. Mazinger 13 years ago
parent
commit
5c38edaeca
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/misc/locale/locale.c

+ 2 - 0
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
 /**********************************************************************/