X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=toolchain%2Fgcc%2Fpatches%2F4.1.1%2F200-uclibc-locale.patch;h=e5d712e7234a57510d1cef42a2b9046c3e51114f;hb=667d0251d0324abb040771c20c47d6126ab38ef6;hp=681e81e27c76280394d85f0909d56a4d252eb062;hpb=09a5e86914ee936ccf262def3133c4bd5d369c41;p=openwrt-10.03%2F.git diff --git a/toolchain/gcc/patches/4.1.1/200-uclibc-locale.patch b/toolchain/gcc/patches/4.1.1/200-uclibc-locale.patch index 681e81e27..e5d712e72 100644 --- a/toolchain/gcc/patches/4.1.1/200-uclibc-locale.patch +++ b/toolchain/gcc/patches/4.1.1/200-uclibc-locale.patch @@ -1747,7 +1747,7 @@ +# ifdef __UCLIBC_HAS_XLOCALE__ + _M_data->_M_decimal_point = __cloc->decimal_point_wc; + _M_data->_M_thousands_sep = __cloc->thousands_sep_wc; -+# else ++# elif defined __UCLIBC_HAS_LOCALE__ + _M_data->_M_decimal_point = __global_locale->decimal_point_wc; + _M_data->_M_thousands_sep = __global_locale->thousands_sep_wc; +# endif @@ -1902,7 +1902,7 @@ +# ifdef __UCLIBC_HAS_XLOCALE__ + _M_data->_M_decimal_point = __cloc->decimal_point_wc; + _M_data->_M_thousands_sep = __cloc->thousands_sep_wc; -+# else ++# elif defined __UCLIBC_HAS_LOCALE__ + _M_data->_M_decimal_point = __global_locale->decimal_point_wc; + _M_data->_M_thousands_sep = __global_locale->thousands_sep_wc; +# endif @@ -2174,7 +2174,7 @@ +# ifdef __UCLIBC_HAS_XLOCALE__ + _M_data->_M_decimal_point = __cloc->decimal_point_wc; + _M_data->_M_thousands_sep = __cloc->thousands_sep_wc; -+# else ++# elif defined __UCLIBC_HAS_LOCALE__ + _M_data->_M_decimal_point = __global_locale->decimal_point_wc; + _M_data->_M_thousands_sep = __global_locale->thousands_sep_wc; +# endif @@ -3120,13 +3120,13 @@ + GLIBCXX_CHECK_WCHAR_T_SUPPORT + + # For LFS. -+ GLIBCXX_CHECK_INT64_T ++ AC_DEFINE(HAVE_INT64_T) + case "$target" in + *-uclinux*) + # Don't enable LFS with uClinux + ;; + *) -+ GLIBCXX_USE_LFS ++ AC_DEFINE(_GLIBCXX_USE_LFS) + esac + + # For showmanyc_helper().