Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 23bcbd58d9fc278d76e5c6d86395891f > files > 3

lsb-build-c++-3.1.1-4mdv2010.0.src.rpm

For use in building LSB code, we need the headers to call 'uselocale'
instead of '__uselocale' - the latter is not in the LSB spec.

--- gcc-3.4.4/libstdc++-v3/config/locale/gnu/c_locale.h	2004-08-16 10:03:24.000000000 -0600
+++ gcc-3.4.4.lsb/libstdc++-v3/config/locale/gnu/c_locale.h	2005-05-09 06:39:25.000000000 -0600
@@ -52,7 +52,7 @@
 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
 namespace __gnu_cxx
 {
-  extern "C" __typeof(uselocale) __uselocale;
+  extern "C" __typeof(uselocale) uselocale;
 }
 #endif
 
@@ -70,7 +70,7 @@
 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
 		     _Tv __v, const __c_locale& __cloc, int __prec)
     {
-      __c_locale __old = __gnu_cxx::__uselocale(__cloc);
+      __c_locale __old = __gnu_cxx::uselocale(__cloc);
 #else
 		     _Tv __v, const __c_locale&, int __prec)
     {
@@ -87,7 +87,7 @@
 #endif
 
 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
-      __gnu_cxx::__uselocale(__old);
+      __gnu_cxx::uselocale(__old);
 #else
       std::setlocale(LC_ALL, __sav);
       delete [] __sav;