OSDN Git Service

Fix a few bugs in the new extended locale functions.
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / common / bits / uClibc_locale.h
index 1602c28..bf642b5 100644 (file)
@@ -41,6 +41,8 @@
 #define __LOCALE_C_ONLY 
 
 #define __XL(N) N
+#define __XL_NPP(N) N
+#define __XL_ALIAS(N)
 #define __LOCALE_PARAM
 #define __LOCALE_ARG
 
@@ -345,7 +347,9 @@ extern __locale_t __curlocale_set(__locale_t newloc);
 /**********************************************************************/
 #if defined(__UCLIBC_HAS_XLOCALE__) && defined(__UCLIBC_DO_XLOCALE)
 
-#define __XL(N) N ## _l
+#define __XL(N) __ ## N ## _l
+#define __XL_NPP(N) N ## _l
+#define __XL_ALIAS(N) weak_alias( __ ## N ## _l , N ## _l )
 #define __LOCALE_PARAM    , __locale_t locale_arg
 #define __LOCALE_ARG      , locale_arg
 #define __LOCALE_PTR      locale_arg
@@ -353,6 +357,8 @@ extern __locale_t __curlocale_set(__locale_t newloc);
 #else  /* defined(__UCLIBC_HAS_XLOCALE__) && defined(__STDLIB_DO_XLOCALE) */
 
 #define __XL(N) N
+#define __XL_NPP(N) N
+#define __XL_ALIAS(N)
 #define __LOCALE_PARAM
 #define __LOCALE_ARG
 #define __LOCALE_PTR      __UCLIBC_CURLOCALE
@@ -360,9 +366,6 @@ extern __locale_t __curlocale_set(__locale_t newloc);
 #endif /* defined(__UCLIBC_HAS_XLOCALE__) && defined(__STDLIB_DO_XLOCALE) */
 /**********************************************************************/
 
-extern __locale_t __newlocale(int category_mask, const char *locale, __locale_t base)
-        __THROW;
-
 #endif /* defined(_LIBC) && !defined(__LOCALE_C_ONLY) */
 /**********************************************************************/