diff -Naur gcc-3.3.4.orig/libstdc++-v3/config/locale/gnu/c_locale.h gcc-3.3.4/libstdc++-v3/config/locale/gnu/c_locale.h --- gcc-3.3.4.orig/libstdc++-v3/config/locale/gnu/c_locale.h 2003-01-23 12:56:16.000000000 -0600 +++ gcc-3.3.4/libstdc++-v3/config/locale/gnu/c_locale.h 2004-09-28 10:35:59.815244528 -0500 @@ -47,7 +47,7 @@ #define _GLIBCPP_NUM_CATEGORIES 6 -#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) +#if _LSB_USE_NEW_LOCALE_ namespace __gnu_cxx { extern "C" __typeof(uselocale) __uselocale; @@ -65,7 +65,7 @@ template int __convert_from_v(char* __out, const int __size, const char* __fmt, -#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) +#if _LSB_USE_NEW_LOCALE_ _Tv __v, const __c_locale& __cloc, int __prec = -1) { __c_locale __old = __gnu_cxx::__uselocale(__cloc); @@ -92,7 +92,7 @@ __ret = sprintf(__out, __fmt, __v); #endif -#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) +#if _LSB_USE_NEW_LOCALE_ __gnu_cxx::__uselocale(__old); #else setlocale(LC_ALL, __sav);