buildroot: allow specifying libc personality for external toolchains
[openwrt.git] / toolchain / gcc / patches / llvm / 306-libstdc++-namespace.patch
1 --- a/libstdc++-v3/config/locale/uclibc/messages_members.h
2 +++ b/libstdc++-v3/config/locale/uclibc/messages_members.h
3 @@ -32,7 +32,8 @@
4  //
5  
6  // Written by Benjamin Kosnik <bkoz@redhat.com>
7 -
8 +namespace std
9 +{
10  #ifdef __UCLIBC_MJN3_ONLY__
11  #warning fix prototypes for *textdomain funcs
12  #endif
13 @@ -115,3 +116,4 @@
14            this->_S_create_c_locale(this->_M_c_locale_messages, __s); 
15          }
16       }
17 +}
18 --- a/libstdc++-v3/config/locale/uclibc/time_members.h
19 +++ b/libstdc++-v3/config/locale/uclibc/time_members.h
20 @@ -33,7 +33,8 @@
21  //
22  
23  // Written by Benjamin Kosnik <bkoz@redhat.com>
24 -
25 +namespace std
26 +{
27    template<typename _CharT>
28      __timepunct<_CharT>::__timepunct(size_t __refs) 
29      : facet(__refs), _M_data(NULL), _M_c_locale_timepunct(NULL), 
30 @@ -74,3 +75,4 @@
31        delete _M_data; 
32        _S_destroy_c_locale(_M_c_locale_timepunct); 
33      }
34 +}