patches/gcc/4.2.0/220-libstdc++-namespace.patch
changeset 747 d3e603e7c17c
parent 111 2e16b9fc302d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.2.0/220-libstdc++-namespace.patch	Mon Jul 28 21:32:33 2008 +0000
     1.3 @@ -0,0 +1,36 @@
     1.4 +diff -rup gcc-4.2.orig/libstdc++-v3/config/locale/uclibc/messages_members.h gcc-4.2/libstdc++-v3/config/locale/uclibc/messages_members.h
     1.5 +--- gcc-4.2.orig/libstdc++-v3/config/locale/uclibc/messages_members.h	2006-12-22 13:06:56.000000000 +0100
     1.6 ++++ gcc-4.2/libstdc++-v3/config/locale/uclibc/messages_members.h	2006-12-22 15:23:41.000000000 +0100
     1.7 +@@ -32,7 +32,8 @@
     1.8 + //
     1.9 + 
    1.10 + // Written by Benjamin Kosnik <bkoz@redhat.com>
    1.11 +-
    1.12 ++namespace std
    1.13 ++{
    1.14 + #ifdef __UCLIBC_MJN3_ONLY__
    1.15 + #warning fix prototypes for *textdomain funcs
    1.16 + #endif
    1.17 +@@ -115,3 +116,4 @@
    1.18 + 	   this->_S_create_c_locale(this->_M_c_locale_messages, __s); 
    1.19 + 	 }
    1.20 +      }
    1.21 ++}
    1.22 +diff -rup gcc-4.2.orig/libstdc++-v3/config/locale/uclibc/time_members.h gcc-4.2/libstdc++-v3/config/locale/uclibc/time_members.h
    1.23 +--- gcc-4.2.orig/libstdc++-v3/config/locale/uclibc/time_members.h	2006-12-22 13:06:56.000000000 +0100
    1.24 ++++ gcc-4.2/libstdc++-v3/config/locale/uclibc/time_members.h	2006-12-22 15:20:31.000000000 +0100
    1.25 +@@ -33,7 +33,8 @@
    1.26 + //
    1.27 + 
    1.28 + // Written by Benjamin Kosnik <bkoz@redhat.com>
    1.29 +-
    1.30 ++namespace std
    1.31 ++{
    1.32 +   template<typename _CharT>
    1.33 +     __timepunct<_CharT>::__timepunct(size_t __refs) 
    1.34 +     : facet(__refs), _M_data(NULL), _M_c_locale_timepunct(NULL), 
    1.35 +@@ -74,3 +75,4 @@
    1.36 +       delete _M_data; 
    1.37 +       _S_destroy_c_locale(_M_c_locale_timepunct); 
    1.38 +     }
    1.39 ++}