summaryrefslogtreecommitdiffstats
path: root/toolchain/gcc/4.2.1/200-uclibc-locale.patch
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-28 18:21:00 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-28 18:21:00 +0000
commitf444143da50f7eb4987727e1a55ff3497505dd31 (patch)
tree7b0a9f326d5b773ee97dca049825ddf12a29b510 /toolchain/gcc/4.2.1/200-uclibc-locale.patch
parent456c9090b8bf2c88c6757702af6fe253a005aa17 (diff)
downloadbuildroot-novena-f444143da50f7eb4987727e1a55ff3497505dd31.tar.gz
buildroot-novena-f444143da50f7eb4987727e1a55ff3497505dd31.zip
Looking at the the gcc-4.2.1 patches for uClibc, I found that the
200-uclibc-locale and 205-uclibc-locale-update patches uses a not existing macro __UCLIBC_HAS_XCLOCALE__ while they should refer to __UCLIBC_HAS_XLOCALE__ Find attached the patches to fix the above mentioned patches Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'toolchain/gcc/4.2.1/200-uclibc-locale.patch')
-rw-r--r--toolchain/gcc/4.2.1/200-uclibc-locale.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolchain/gcc/4.2.1/200-uclibc-locale.patch b/toolchain/gcc/4.2.1/200-uclibc-locale.patch
index ea21388b7..13e3d4659 100644
--- a/toolchain/gcc/4.2.1/200-uclibc-locale.patch
+++ b/toolchain/gcc/4.2.1/200-uclibc-locale.patch
@@ -381,7 +381,7 @@
+ __convert_from_v(char* __out,
+ const int __size __attribute__ ((__unused__)),
+ const char* __fmt,
-+#ifdef __UCLIBC_HAS_XCLOCALE__
++#ifdef __UCLIBC_HAS_XLOCALE__
+ _Tv __v, const __c_locale& __cloc, int __prec)
+ {
+ __c_locale __old = __gnu_cxx::__uselocale(__cloc);
@@ -398,7 +398,7 @@
+
+ const int __ret = std::snprintf(__out, __size, __fmt, __prec, __v);
+
-+#ifdef __UCLIBC_HAS_XCLOCALE__
++#ifdef __UCLIBC_HAS_XLOCALE__
+ __gnu_cxx::__uselocale(__old);
+#elif defined __UCLIBC_HAS_LOCALE__
+ std::setlocale(LC_ALL, __sav);