summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-06 17:35:50 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-06 17:35:50 +0000
commit2a31a70ef169cfc1709dd2297fe123386e9db932 (patch)
treeb670b9d6f0db3318ae03978482ec4ccdb982f7b2 /libc
parent6da8404acaf15484e5d76bf91d91781fb615fdec (diff)
Allow to build gcc/libstdc++ w/ LOCALE enabled, XLOCALE probably won't work though
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/bits/uClibc_locale.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/bits/uClibc_locale.h b/libc/sysdeps/linux/common/bits/uClibc_locale.h
index fe52834e6..fe574170f 100644
--- a/libc/sysdeps/linux/common/bits/uClibc_locale.h
+++ b/libc/sysdeps/linux/common/bits/uClibc_locale.h
@@ -67,7 +67,7 @@
/**********************************************************************/
#ifndef __LOCALE_C_ONLY
-#if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc)
+#if defined _LIBC /* && (defined IS_IN_libc || defined NOT_IN_libc) */
#include <stddef.h>
#include <stdint.h>
#include <bits/uClibc_touplow.h>
@@ -100,7 +100,7 @@ enum {
* In particular, C/POSIX locale is '#' + "\x80\x01"}*LC_ALL + nul.
*/
-#if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc) && !defined __UCLIBC_GEN_LOCALE
+#if defined _LIBC && !defined __UCLIBC_GEN_LOCALE /* && (defined IS_IN_libc || defined NOT_IN_libc) */
typedef struct {
uint16_t num_weights;
uint16_t num_starters;
@@ -322,6 +322,7 @@ extern struct __uclibc_locale_struct * __global_locale;
typedef struct __uclibc_locale_struct *__locale_t;
+/* if we need to leave only _LIBC, then attribute_hidden is not usable */
#if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc)
extern int __locale_mbrtowc_l(wchar_t *__restrict dst,
const char *__restrict src,