306-libstdc++-namespace.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. 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
  2. --- gcc-4.2.orig/libstdc++-v3/config/locale/uclibc/messages_members.h 2006-12-22 13:06:56.000000000 +0100
  3. +++ gcc-4.2/libstdc++-v3/config/locale/uclibc/messages_members.h 2006-12-22 15:23:41.000000000 +0100
  4. @@ -32,7 +32,8 @@
  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. 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
  19. --- gcc-4.2.orig/libstdc++-v3/config/locale/uclibc/time_members.h 2006-12-22 13:06:56.000000000 +0100
  20. +++ gcc-4.2/libstdc++-v3/config/locale/uclibc/time_members.h 2006-12-22 15:20:31.000000000 +0100
  21. @@ -33,7 +33,8 @@
  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. +}