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.

110 lines
2.6 KiB

  1. --- nxcomp/Types.h.orig 2004-08-10 10:47:11.000000000 +0200
  2. +++ nxcomp/Types.h 2004-09-16 02:19:01.364333008 +0200
  3. @@ -74,22 +74,26 @@
  4. void clear()
  5. {
  6. - #if defined(__STL_USE_STD_ALLOCATORS) || defined(__GLIBCPP_INTERNAL_VECTOR_H)
  7. + #if defined(_VECTOR_H) || defined(__GLIBCPP_INTERNAL_VECTOR_H)
  8. - #if defined(__GLIBCPP_INTERNAL_VECTOR_H)
  9. + #if defined(_VECTOR_H)
  10. - _Destroy(_M_start, _M_finish);
  11. + _Destroy(_M_impl._M_start, _M_impl._M_finish);
  12. - #else
  13. + _M_deallocate(_M_impl._M_start, _M_impl._M_end_of_storage - _M_impl._M_start);
  14. - destroy(_M_start, _M_finish);
  15. + _M_impl._M_start = _M_impl._M_finish = _M_impl._M_end_of_storage = 0;
  16. - #endif
  17. + #else
  18. _M_deallocate(_M_start, _M_end_of_storage - _M_start);
  19. _M_start = _M_finish = _M_end_of_storage = 0;
  20. + _Destroy(_M_start, _M_finish);
  21. +
  22. + #endif
  23. +
  24. #else
  25. destroy(start, finish);
  26. @@ -108,22 +112,28 @@
  27. void clear()
  28. {
  29. - #if defined(__STL_USE_STD_ALLOCATORS) || defined(__GLIBCPP_INTERNAL_VECTOR_H)
  30. + #if defined(_VECTOR_H) || defined(__GLIBCPP_INTERNAL_VECTOR_H)
  31. - #if defined(__GLIBCPP_INTERNAL_VECTOR_H)
  32. + #if defined(_VECTOR_H)
  33. - _Destroy(_M_start, _M_finish);
  34. + _Destroy(_M_impl._M_start, _M_impl._M_finish);
  35. - #else
  36. + _M_deallocate(_M_impl._M_start, _M_impl._M_end_of_storage - _M_impl._M_start);
  37. - destroy(_M_start, _M_finish);
  38. + _M_impl._M_start = _M_impl._M_finish = _M_impl._M_end_of_storage = 0;
  39. - #endif
  40. + #else
  41. _M_deallocate(_M_start, _M_end_of_storage - _M_start);
  42. _M_start = _M_finish = _M_end_of_storage = 0;
  43. + _Destroy(_M_start, _M_finish);
  44. +
  45. + #endif
  46. +
  47. +
  48. +
  49. #else
  50. destroy(start, finish);
  51. --- nxcomp/Jpeg.cpp.orig 2004-09-13 03:41:49.905274168 +0200
  52. +++ nxcomp/Jpeg.cpp 2004-09-13 03:43:06.886571232 +0200
  53. @@ -452,7 +452,7 @@
  54. // next line.
  55. //
  56. - (char *) pixelPtr += RoundUp4(w * 2) - w * 2;
  57. + pixelPtr += RoundUp4(w * 2) - w * 2;
  58. dy++;
  59. }
  60. @@ -562,7 +562,7 @@
  61. pixelPtr += 3;
  62. }
  63. - (char *) pixelPtr += RoundUp4(w * 3) - w * 3;
  64. + pixelPtr += RoundUp4(w * 3) - w * 3;
  65. dy++;
  66. }
  67. --- nxcomp/Png.cpp.orig 2004-09-13 03:43:18.138860624 +0200
  68. +++ nxcomp/Png.cpp 2004-09-13 03:43:41.532304280 +0200
  69. @@ -452,7 +452,7 @@
  70. // next line
  71. //
  72. - (char *) pixelPtr += RoundUp4(w * 2) - w * 2;
  73. + pixelPtr += RoundUp4(w * 2) - w * 2;
  74. }
  75. png_destroy_read_struct(&png_ptr, &info_ptr,NULL);
  76. @@ -578,7 +578,7 @@
  77. pixelPtr += 3;
  78. }
  79. - (char *) pixelPtr += RoundUp4(w * 3) - w * 3;
  80. + pixelPtr += RoundUp4(w * 3) - w * 3;
  81. }
  82. png_destroy_read_struct(&png_ptr, &info_ptr,NULL);