Explorar el Código

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 hace 13 años
padre
commit
5c38edaeca
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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
 /**********************************************************************/