1 Index: gcc-4.2.3/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
2 ===================================================================
3 --- gcc-4.2.3.orig/libstdc++-v3/config/locale/uclibc/c++locale_internal.h 2008-05-21 13:45:43.925289703 +0200
4 +++ gcc-4.2.3/libstdc++-v3/config/locale/uclibc/c++locale_internal.h 2008-05-21 13:45:45.253289024 +0200
6 extern "C" __typeof(wctype_l) __wctype_l;
9 +# define __nl_langinfo_l nl_langinfo_l
10 +# define __strcoll_l strcoll_l
11 +# define __strftime_l strftime_l
12 +# define __strtod_l strtod_l
13 +# define __strtof_l strtof_l
14 +# define __strtold_l strtold_l
15 +# define __strxfrm_l strxfrm_l
16 +# define __newlocale newlocale
17 +# define __freelocale freelocale
18 +# define __duplocale duplocale
19 +# define __uselocale uselocale
21 +# ifdef _GLIBCXX_USE_WCHAR_T
22 +# define __iswctype_l iswctype_l
23 +# define __towlower_l towlower_l
24 +# define __towupper_l towupper_l
25 +# define __wcscoll_l wcscoll_l
26 +# define __wcsftime_l wcsftime_l
27 +# define __wcsxfrm_l wcsxfrm_l
28 +# define __wctype_l wctype_l
32 +# define __nl_langinfo_l(N, L) nl_langinfo((N))
33 +# define __strcoll_l(S1, S2, L) strcoll((S1), (S2))
34 +# define __strtod_l(S, E, L) strtod((S), (E))
35 +# define __strtof_l(S, E, L) strtof((S), (E))
36 +# define __strtold_l(S, E, L) strtold((S), (E))
37 +# define __strxfrm_l(S1, S2, N, L) strxfrm((S1), (S2), (N))
38 +# warning should dummy __newlocale check for C|POSIX ?
39 +# define __newlocale(a, b, c) NULL
40 +# define __freelocale(a) ((void)0)
41 +# define __duplocale(a) __c_locale()
42 +//# define __uselocale ?
44 +# ifdef _GLIBCXX_USE_WCHAR_T
45 +# define __iswctype_l(C, M, L) iswctype((C), (M))
46 +# define __towlower_l(C, L) towlower((C))
47 +# define __towupper_l(C, L) towupper((C))
48 +# define __wcscoll_l(S1, S2, L) wcscoll((S1), (S2))
49 +//# define __wcsftime_l(S, M, F, T, L) wcsftime((S), (M), (F), (T))
50 +# define __wcsxfrm_l(S1, S2, N, L) wcsxfrm((S1), (S2), (N))
51 +# define __wctype_l(S, L) wctype((S))
54 #endif // GLIBC 2.3 and later
55 Index: gcc-4.2.3/libstdc++-v3/config/locale/uclibc/c_locale.cc
56 ===================================================================
57 --- gcc-4.2.3.orig/libstdc++-v3/config/locale/uclibc/c_locale.cc 2008-05-21 13:45:43.925289703 +0200
58 +++ gcc-4.2.3/libstdc++-v3/config/locale/uclibc/c_locale.cc 2008-05-21 13:45:45.253289024 +0200
61 #include <bits/c++locale_internal.h>
63 -#ifndef __UCLIBC_HAS_XLOCALE__
64 -#define __strtol_l(S, E, B, L) strtol((S), (E), (B))
65 -#define __strtoul_l(S, E, B, L) strtoul((S), (E), (B))
66 -#define __strtoll_l(S, E, B, L) strtoll((S), (E), (B))
67 -#define __strtoull_l(S, E, B, L) strtoull((S), (E), (B))
68 -#define __strtof_l(S, E, L) strtof((S), (E))
69 -#define __strtod_l(S, E, L) strtod((S), (E))
70 -#define __strtold_l(S, E, L) strtold((S), (E))
71 -#warning should dummy __newlocale check for C|POSIX ?
72 -#define __newlocale(a, b, c) NULL
73 -#define __freelocale(a) ((void)0)
74 -#define __duplocale(a) __c_locale()
80 Index: gcc-4.2.3/libstdc++-v3/config/locale/uclibc/collate_members.cc
81 ===================================================================
82 --- gcc-4.2.3.orig/libstdc++-v3/config/locale/uclibc/collate_members.cc 2008-05-21 13:45:43.929287698 +0200
83 +++ gcc-4.2.3/libstdc++-v3/config/locale/uclibc/collate_members.cc 2008-05-21 13:45:45.253289024 +0200
86 #include <bits/c++locale_internal.h>
88 -#ifndef __UCLIBC_HAS_XLOCALE__
89 -#define __strcoll_l(S1, S2, L) strcoll((S1), (S2))
90 -#define __strxfrm_l(S1, S2, N, L) strxfrm((S1), (S2), (N))
91 -#define __wcscoll_l(S1, S2, L) wcscoll((S1), (S2))
92 -#define __wcsxfrm_l(S1, S2, N, L) wcsxfrm((S1), (S2), (N))
97 // These are basically extensions to char_traits, and perhaps should
98 Index: gcc-4.2.3/libstdc++-v3/config/locale/uclibc/monetary_members.cc
99 ===================================================================
100 --- gcc-4.2.3.orig/libstdc++-v3/config/locale/uclibc/monetary_members.cc 2008-05-21 13:45:43.933287929 +0200
101 +++ gcc-4.2.3/libstdc++-v3/config/locale/uclibc/monetary_members.cc 2008-05-21 13:45:45.257288137 +0200
103 #warning tailor for stub locale support
106 -#ifndef __UCLIBC_HAS_XLOCALE__
107 -#define __nl_langinfo_l(N, L) nl_langinfo((N))
112 // Construct and return valid pattern consisting of some combination of:
113 Index: gcc-4.2.3/libstdc++-v3/config/locale/uclibc/numeric_members.cc
114 ===================================================================
115 --- gcc-4.2.3.orig/libstdc++-v3/config/locale/uclibc/numeric_members.cc 2008-05-21 13:45:43.933287929 +0200
116 +++ gcc-4.2.3/libstdc++-v3/config/locale/uclibc/numeric_members.cc 2008-05-21 13:45:45.257288137 +0200
118 #ifdef __UCLIBC_MJN3_ONLY__
119 #warning tailor for stub locale support
121 -#ifndef __UCLIBC_HAS_XLOCALE__
122 -#define __nl_langinfo_l(N, L) nl_langinfo((N))
127 Index: gcc-4.2.3/libstdc++-v3/config/locale/uclibc/time_members.cc
128 ===================================================================
129 --- gcc-4.2.3.orig/libstdc++-v3/config/locale/uclibc/time_members.cc 2008-05-21 13:45:43.933287929 +0200
130 +++ gcc-4.2.3/libstdc++-v3/config/locale/uclibc/time_members.cc 2008-05-21 13:45:45.257288137 +0200
132 #ifdef __UCLIBC_MJN3_ONLY__
133 #warning tailor for stub locale support
135 -#ifndef __UCLIBC_HAS_XLOCALE__
136 -#define __nl_langinfo_l(N, L) nl_langinfo((N))
141 Index: gcc-4.2.3/libstdc++-v3/config/locale/uclibc/ctype_members.cc
142 ===================================================================
143 --- gcc-4.2.3.orig/libstdc++-v3/config/locale/uclibc/ctype_members.cc 2008-05-21 13:45:43.929287698 +0200
144 +++ gcc-4.2.3/libstdc++-v3/config/locale/uclibc/ctype_members.cc 2008-05-21 13:45:45.257288137 +0200
147 #include <bits/c++locale_internal.h>
149 -#ifndef __UCLIBC_HAS_XLOCALE__
150 -#define __wctype_l(S, L) wctype((S))
151 -#define __towupper_l(C, L) towupper((C))
152 -#define __towlower_l(C, L) towlower((C))
153 -#define __iswctype_l(C, M, L) iswctype((C), (M))
158 // NB: The other ctype<char> specializations are in src/locale.cc and
159 Index: gcc-4.2.3/libstdc++-v3/config/locale/uclibc/messages_members.cc
160 ===================================================================
161 --- gcc-4.2.3.orig/libstdc++-v3/config/locale/uclibc/messages_members.cc 2008-05-21 13:45:43.929287698 +0200
162 +++ gcc-4.2.3/libstdc++-v3/config/locale/uclibc/messages_members.cc 2008-05-21 13:45:45.257288137 +0200
164 #ifdef __UCLIBC_MJN3_ONLY__
165 #warning fix gettext stuff
167 -#ifdef __UCLIBC_HAS_GETTEXT_AWARENESS__
168 -extern "C" char *__dcgettext(const char *domainname,
169 - const char *msgid, int category);
171 -#define gettext(msgid) __dcgettext(NULL, msgid, LC_MESSAGES)
172 +#ifdef __UCLIBC_HAS_GETTEXT_AWARENESS__
173 +#define gettext(msgid) dcgettext(NULL, msgid, LC_MESSAGES)
176 #define gettext(msgid) (msgid)
179 Index: gcc-4.2.3/libstdc++-v3/config/locale/uclibc/messages_members.h
180 ===================================================================
181 --- gcc-4.2.3.orig/libstdc++-v3/config/locale/uclibc/messages_members.h 2008-05-21 13:45:43.929287698 +0200
182 +++ gcc-4.2.3/libstdc++-v3/config/locale/uclibc/messages_members.h 2008-05-21 13:45:45.257288137 +0200
184 #ifdef __UCLIBC_MJN3_ONLY__
185 #warning fix prototypes for *textdomain funcs
187 -#ifdef __UCLIBC_HAS_GETTEXT_AWARENESS__
188 -extern "C" char *__textdomain(const char *domainname);
189 -extern "C" char *__bindtextdomain(const char *domainname,
190 - const char *dirname);
193 -#undef __bindtextdomain
194 -#define __textdomain(D) ((void)0)
195 -#define __bindtextdomain(D,P) ((void)0)
196 +#ifndef __UCLIBC_HAS_GETTEXT_AWARENESS__
198 +#undef bindtextdomain
199 +#define textdomain(D) ((void)0)
200 +#define bindtextdomain(D,P) ((void)0)
203 // Non-virtual member functions.
205 messages<_CharT>::open(const basic_string<char>& __s, const locale& __loc,
206 const char* __dir) const
208 - __bindtextdomain(__s.c_str(), __dir);
209 + bindtextdomain(__s.c_str(), __dir);
210 return this->do_open(__s, __loc);
215 // No error checking is done, assume the catalog exists and can
217 - __textdomain(__s.c_str());
218 + textdomain(__s.c_str());
222 Index: gcc-4.2.3/libstdc++-v3/config/locale/uclibc/c_locale.h
223 ===================================================================
224 --- gcc-4.2.3.orig/libstdc++-v3/config/locale/uclibc/c_locale.h 2008-05-21 13:45:43.925289703 +0200
225 +++ gcc-4.2.3/libstdc++-v3/config/locale/uclibc/c_locale.h 2008-05-21 13:45:45.257288137 +0200
228 extern "C" __typeof(uselocale) __uselocale;
230 +#define __uselocale uselocale