OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/pkg_patch/gcc/306-libstdc++-namespace.patch
  5. # Copyright (C) 2009 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. 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
  17. --- gcc-4.2.orig/libstdc++-v3/config/locale/uclibc/messages_members.h 2006-12-22 13:06:56.000000000 +0100
  18. +++ gcc-4.2/libstdc++-v3/config/locale/uclibc/messages_members.h 2006-12-22 15:23:41.000000000 +0100
  19. @@ -32,7 +32,8 @@
  20. //
  21. // Written by Benjamin Kosnik <bkoz@redhat.com>
  22. -
  23. +namespace std
  24. +{
  25. #ifdef __UCLIBC_MJN3_ONLY__
  26. #warning fix prototypes for *textdomain funcs
  27. #endif
  28. @@ -115,3 +116,4 @@
  29. this->_S_create_c_locale(this->_M_c_locale_messages, __s);
  30. }
  31. }
  32. +}
  33. 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
  34. --- gcc-4.2.orig/libstdc++-v3/config/locale/uclibc/time_members.h 2006-12-22 13:06:56.000000000 +0100
  35. +++ gcc-4.2/libstdc++-v3/config/locale/uclibc/time_members.h 2006-12-22 15:20:31.000000000 +0100
  36. @@ -33,7 +33,8 @@
  37. //
  38. // Written by Benjamin Kosnik <bkoz@redhat.com>
  39. -
  40. +namespace std
  41. +{
  42. template<typename _CharT>
  43. __timepunct<_CharT>::__timepunct(size_t __refs)
  44. : facet(__refs), _M_data(NULL), _M_c_locale_timepunct(NULL),
  45. @@ -74,3 +75,4 @@
  46. delete _M_data;
  47. _S_destroy_c_locale(_M_c_locale_timepunct);
  48. }
  49. +}