306-libstdc++-namespace.patch 853 B

12345678910111213141516171819202122232425262728293031323334
  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. // Written by Benjamin Kosnik <[email protected]>
  6. -
  7. +namespace std
  8. +{
  9. #ifdef __UCLIBC_MJN3_ONLY__
  10. #warning fix prototypes for *textdomain funcs
  11. #endif
  12. @@ -115,3 +116,4 @@
  13. this->_S_create_c_locale(this->_M_c_locale_messages, __s);
  14. }
  15. }
  16. +}
  17. --- a/libstdc++-v3/config/locale/uclibc/time_members.h
  18. +++ b/libstdc++-v3/config/locale/uclibc/time_members.h
  19. @@ -33,7 +33,8 @@
  20. //
  21. // Written by Benjamin Kosnik <[email protected]>
  22. -
  23. +namespace std
  24. +{
  25. template<typename _CharT>
  26. __timepunct<_CharT>::__timepunct(size_t __refs)
  27. : facet(__refs), _M_data(NULL), _M_c_locale_timepunct(NULL),
  28. @@ -74,3 +75,4 @@
  29. delete _M_data;
  30. _S_destroy_c_locale(_M_c_locale_timepunct);
  31. }
  32. +}