mirror of the now-defunct rocklinux.org
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.

129 lines
3.5 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/avm/nx-X11/gcc34.diff
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- nxcomp/Types.h.orig 2004-08-10 10:47:11.000000000 +0200
  20. +++ nxcomp/Types.h 2004-09-16 02:19:01.364333008 +0200
  21. @@ -74,22 +74,26 @@
  22. void clear()
  23. {
  24. - #if defined(__STL_USE_STD_ALLOCATORS) || defined(__GLIBCPP_INTERNAL_VECTOR_H)
  25. + #if defined(_VECTOR_H) || defined(__GLIBCPP_INTERNAL_VECTOR_H)
  26. - #if defined(__GLIBCPP_INTERNAL_VECTOR_H)
  27. + #if defined(_VECTOR_H)
  28. - _Destroy(_M_start, _M_finish);
  29. + _Destroy(_M_impl._M_start, _M_impl._M_finish);
  30. - #else
  31. + _M_deallocate(_M_impl._M_start, _M_impl._M_end_of_storage - _M_impl._M_start);
  32. - destroy(_M_start, _M_finish);
  33. + _M_impl._M_start = _M_impl._M_finish = _M_impl._M_end_of_storage = 0;
  34. - #endif
  35. + #else
  36. _M_deallocate(_M_start, _M_end_of_storage - _M_start);
  37. _M_start = _M_finish = _M_end_of_storage = 0;
  38. + _Destroy(_M_start, _M_finish);
  39. +
  40. + #endif
  41. +
  42. #else
  43. destroy(start, finish);
  44. @@ -108,22 +112,28 @@
  45. void clear()
  46. {
  47. - #if defined(__STL_USE_STD_ALLOCATORS) || defined(__GLIBCPP_INTERNAL_VECTOR_H)
  48. + #if defined(_VECTOR_H) || defined(__GLIBCPP_INTERNAL_VECTOR_H)
  49. - #if defined(__GLIBCPP_INTERNAL_VECTOR_H)
  50. + #if defined(_VECTOR_H)
  51. - _Destroy(_M_start, _M_finish);
  52. + _Destroy(_M_impl._M_start, _M_impl._M_finish);
  53. - #else
  54. + _M_deallocate(_M_impl._M_start, _M_impl._M_end_of_storage - _M_impl._M_start);
  55. - destroy(_M_start, _M_finish);
  56. + _M_impl._M_start = _M_impl._M_finish = _M_impl._M_end_of_storage = 0;
  57. - #endif
  58. + #else
  59. _M_deallocate(_M_start, _M_end_of_storage - _M_start);
  60. _M_start = _M_finish = _M_end_of_storage = 0;
  61. + _Destroy(_M_start, _M_finish);
  62. +
  63. + #endif
  64. +
  65. +
  66. +
  67. #else
  68. destroy(start, finish);
  69. --- nxcomp/Jpeg.cpp.orig 2004-09-13 03:41:49.905274168 +0200
  70. +++ nxcomp/Jpeg.cpp 2004-09-13 03:43:06.886571232 +0200
  71. @@ -452,7 +452,7 @@
  72. // next line.
  73. //
  74. - (char *) pixelPtr += RoundUp4(w * 2) - w * 2;
  75. + pixelPtr += RoundUp4(w * 2) - w * 2;
  76. dy++;
  77. }
  78. @@ -562,7 +562,7 @@
  79. pixelPtr += 3;
  80. }
  81. - (char *) pixelPtr += RoundUp4(w * 3) - w * 3;
  82. + pixelPtr += RoundUp4(w * 3) - w * 3;
  83. dy++;
  84. }
  85. --- nxcomp/Png.cpp.orig 2004-09-13 03:43:18.138860624 +0200
  86. +++ nxcomp/Png.cpp 2004-09-13 03:43:41.532304280 +0200
  87. @@ -452,7 +452,7 @@
  88. // next line
  89. //
  90. - (char *) pixelPtr += RoundUp4(w * 2) - w * 2;
  91. + pixelPtr += RoundUp4(w * 2) - w * 2;
  92. }
  93. png_destroy_read_struct(&png_ptr, &info_ptr,NULL);
  94. @@ -578,7 +578,7 @@
  95. pixelPtr += 3;
  96. }
  97. - (char *) pixelPtr += RoundUp4(w * 3) - w * 3;
  98. + pixelPtr += RoundUp4(w * 3) - w * 3;
  99. }
  100. png_destroy_read_struct(&png_ptr, &info_ptr,NULL);