Ver código fonte

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 anos atrás
pai
commit
5c38edaeca
1 arquivos alterados com 2 adições e 0 exclusões
  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
 /**********************************************************************/