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.

239 lines
9.2 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/rene/blender/gcc34.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 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. Well blender needs some more gcc-3.4 adaptions :-(
  20. - Rene Rebe <rene@rocklinux.org>
  21. diff -ur blender-2.33-orig/extern/solid/include/MT/Interval.h blender-2.33/extern/solid/include/MT/Interval.h
  22. --- blender-2.33-orig/extern/solid/include/MT/Interval.h 2004-02-16 16:59:03.000000000 +0100
  23. +++ blender-2.33/extern/solid/include/MT/Interval.h 2004-05-13 11:39:04.073503624 +0200
  24. @@ -111,7 +111,7 @@
  25. inline std::ostream&
  26. operator<<(std::ostream& os, const Interval<Scalar>& z)
  27. {
  28. - return os << '[' << x.lower() << ", " << x.upper() << ']';
  29. + return os << '[' << z.lower() << ", " << z.upper() << ']';
  30. }
  31. template <typename Scalar>
  32. diff -ur blender-2.33-orig/extern/solid/include/MT/Quaternion.h blender-2.33/extern/solid/include/MT/Quaternion.h
  33. --- blender-2.33-orig/extern/solid/include/MT/Quaternion.h 2004-02-16 16:59:03.000000000 +0100
  34. +++ blender-2.33/extern/solid/include/MT/Quaternion.h 2004-05-13 11:39:25.245285024 +0200
  35. @@ -84,19 +84,19 @@
  36. Quaternion<Scalar>& operator+=(const Quaternion<Scalar>& q)
  37. {
  38. - m_co[0] += q[0]; m_co[1] += q[1]; m_co[2] += q[2]; m_co[3] += q[3];
  39. + this->m_co[0] += q[0]; this->m_co[1] += q[1]; this->m_co[2] += q[2]; this->m_co[3] += q[3];
  40. return *this;
  41. }
  42. Quaternion<Scalar>& operator-=(const Quaternion<Scalar>& q)
  43. {
  44. - m_co[0] -= q[0]; m_co[1] -= q[1]; m_co[2] -= q[2]; m_co[3] -= q[3];
  45. + this->m_co[0] -= q[0]; this->m_co[1] -= q[1]; this->m_co[2] -= q[2]; this->m_co[3] -= q[3];
  46. return *this;
  47. }
  48. Quaternion<Scalar>& operator*=(const Scalar& s)
  49. {
  50. - m_co[0] *= s; m_co[1] *= s; m_co[2] *= s; m_co[3] *= s;
  51. + this->m_co[0] *= s; this->m_co[1] *= s; this->m_co[2] *= s; this->m_co[3] *= s;
  52. return *this;
  53. }
  54. @@ -108,16 +108,16 @@
  55. Quaternion<Scalar>& operator*=(const Quaternion<Scalar>& q)
  56. {
  57. - setValue(m_co[3] * q[0] + m_co[0] * q[3] + m_co[1] * q[2] - m_co[2] * q[1],
  58. - m_co[3] * q[1] + m_co[1] * q[3] + m_co[2] * q[0] - m_co[0] * q[2],
  59. - m_co[3] * q[2] + m_co[2] * q[3] + m_co[0] * q[1] - m_co[1] * q[0],
  60. - m_co[3] * q[3] - m_co[0] * q[0] - m_co[1] * q[1] - m_co[2] * q[2]);
  61. + setValue(this->m_co[3] * q[0] + this->m_co[0] * q[3] + this->m_co[1] * q[2] - this->m_co[2] * q[1],
  62. + this->m_co[3] * q[1] + this->m_co[1] * q[3] + this->m_co[2] * q[0] - this->m_co[0] * q[2],
  63. + this->m_co[3] * q[2] + this->m_co[2] * q[3] + this->m_co[0] * q[1] - this->m_co[1] * q[0],
  64. + this->m_co[3] * q[3] - this->m_co[0] * q[0] - this->m_co[1] * q[1] - this->m_co[2] * q[2]);
  65. return *this;
  66. }
  67. Scalar dot(const Quaternion<Scalar>& q) const
  68. {
  69. - return m_co[0] * q[0] + m_co[1] * q[1] + m_co[2] * q[2] + m_co[3] * q[3];
  70. + return this->m_co[0] * q[0] + this->m_co[1] * q[1] + this->m_co[2] * q[2] + this->m_co[3] * q[3];
  71. }
  72. Scalar length2() const
  73. @@ -149,7 +149,7 @@
  74. Quaternion<Scalar> conjugate() const
  75. {
  76. - return Quaternion<Scalar>(-m_co[0], -m_co[1], -m_co[2], m_co[3]);
  77. + return Quaternion<Scalar>(- this->m_co[0], - this->m_co[1], - this->m_co[2], this->m_co[3]);
  78. }
  79. Quaternion<Scalar> inverse() const
  80. @@ -165,10 +165,10 @@
  81. Scalar d = Scalar(1.0) / Scalar_traits<Scalar>::sin(theta);
  82. Scalar s0 = Scalar_traits<Scalar>::sin((Scalar(1.0) - t) * theta);
  83. Scalar s1 = Scalar_traits<Scalar>::sin(t * theta);
  84. - return Quaternion<Scalar>((m_co[0] * s0 + q[0] * s1) * d,
  85. - (m_co[1] * s0 + q[1] * s1) * d,
  86. - (m_co[2] * s0 + q[2] * s1) * d,
  87. - (m_co[3] * s0 + q[3] * s1) * d);
  88. + return Quaternion<Scalar>((this->m_co[0] * s0 + q[0] * s1) * d,
  89. + (this->m_co[1] * s0 + q[1] * s1) * d,
  90. + (this->m_co[2] * s0 + q[2] * s1) * d,
  91. + (this->m_co[3] * s0 + q[3] * s1) * d);
  92. }
  93. else
  94. {
  95. diff -ur blender-2.33-orig/extern/solid/include/MT/Vector3.h blender-2.33/extern/solid/include/MT/Vector3.h
  96. --- blender-2.33-orig/extern/solid/include/MT/Vector3.h 2004-02-16 16:59:03.000000000 +0100
  97. +++ blender-2.33/extern/solid/include/MT/Vector3.h 2004-05-13 11:49:17.590234904 +0200
  98. @@ -45,19 +45,19 @@
  99. Vector3<Scalar>& operator+=(const Vector3<Scalar>& v)
  100. {
  101. - m_co[0] += v[0]; m_co[1] += v[1]; m_co[2] += v[2];
  102. + this->m_co[0] += v[0]; this->m_co[1] += v[1]; this->m_co[2] += v[2];
  103. return *this;
  104. }
  105. Vector3<Scalar>& operator-=(const Vector3<Scalar>& v)
  106. {
  107. - m_co[0] -= v[0]; m_co[1] -= v[1]; m_co[2] -= v[2];
  108. + this->m_co[0] -= v[0]; this->m_co[1] -= v[1]; this->m_co[2] -= v[2];
  109. return *this;
  110. }
  111. Vector3<Scalar>& operator*=(const Scalar& s)
  112. {
  113. - m_co[0] *= s; m_co[1] *= s; m_co[2] *= s;
  114. + this->m_co[0] *= s; this->m_co[1] *= s; this->m_co[2] *= s;
  115. return *this;
  116. }
  117. @@ -69,7 +69,7 @@
  118. Scalar dot(const Vector3<Scalar>& v) const
  119. {
  120. - return m_co[0] * v[0] + m_co[1] * v[1] + m_co[2] * v[2];
  121. + return this->m_co[0] * v[0] + this->m_co[1] * v[1] + this->m_co[2] * v[2];
  122. }
  123. Scalar length2() const
  124. @@ -111,33 +111,33 @@
  125. Vector3<Scalar> absolute() const
  126. {
  127. - return Vector3<Scalar>(Scalar_traits<Scalar>::abs(m_co[0]),
  128. - Scalar_traits<Scalar>::abs(m_co[1]),
  129. - Scalar_traits<Scalar>::abs(m_co[2]));
  130. + return Vector3<Scalar>(Scalar_traits<Scalar>::abs(this->m_co[0]),
  131. + Scalar_traits<Scalar>::abs(this->m_co[1]),
  132. + Scalar_traits<Scalar>::abs(this->m_co[2]));
  133. }
  134. Vector3<Scalar> cross(const Vector3<Scalar>& v) const
  135. {
  136. - return Vector3<Scalar>(m_co[1] * v[2] - m_co[2] * v[1],
  137. - m_co[2] * v[0] - m_co[0] * v[2],
  138. - m_co[0] * v[1] - m_co[1] * v[0]);
  139. + return Vector3<Scalar>(this->m_co[1] * v[2] - this->m_co[2] * v[1],
  140. + this->m_co[2] * v[0] - this->m_co[0] * v[2],
  141. + this->m_co[0] * v[1] - this->m_co[1] * v[0]);
  142. }
  143. Scalar triple(const Vector3<Scalar>& v1, const Vector3<Scalar>& v2) const
  144. {
  145. - return m_co[0] * (v1[1] * v2[2] - v1[2] * v2[1]) +
  146. - m_co[1] * (v1[2] * v2[0] - v1[0] * v2[2]) +
  147. - m_co[2] * (v1[0] * v2[1] - v1[1] * v2[0]);
  148. + return this->m_co[0] * (v1[1] * v2[2] - v1[2] * v2[1]) +
  149. + this->m_co[1] * (v1[2] * v2[0] - v1[0] * v2[2]) +
  150. + this->m_co[2] * (v1[0] * v2[1] - v1[1] * v2[0]);
  151. }
  152. int minAxis() const
  153. {
  154. - return m_co[0] < m_co[1] ? (m_co[0] < m_co[2] ? 0 : 2) : (m_co[1] < m_co[2] ? 1 : 2);
  155. + return this->m_co[0] < this->m_co[1] ? (this->m_co[0] < this->m_co[2] ? 0 : 2) : (this->m_co[1] < this->m_co[2] ? 1 : 2);
  156. }
  157. int maxAxis() const
  158. {
  159. - return m_co[0] < m_co[1] ? (m_co[1] < m_co[2] ? 2 : 1) : (m_co[0] < m_co[2] ? 2 : 0);
  160. + return this->m_co[0] < this->m_co[1] ? (this->m_co[1] < this->m_co[2] ? 2 : 1) : (this->m_co[0] < this->m_co[2] ? 2 : 0);
  161. }
  162. int furthestAxis() const
  163. @@ -152,9 +152,9 @@
  164. Vector3<Scalar> lerp(const Vector3<Scalar>& v, const Scalar& t) const
  165. {
  166. - return Vector3<Scalar>(m_co[0] + (v[0] - m_co[0]) * t,
  167. - m_co[1] + (v[1] - m_co[1]) * t,
  168. - m_co[2] + (v[2] - m_co[2]) * t);
  169. + return Vector3<Scalar>(this->m_co[0] + (v[0] - this->m_co[0]) * t,
  170. + this->m_co[1] + (v[1] - this->m_co[1]) * t,
  171. + this->m_co[2] + (v[2] - this->m_co[2]) * t);
  172. }
  173. static Vector3<Scalar> random()
  174. diff -ur blender-2.33-orig/extern/solid/src/complex/DT_BBoxTree.h blender-2.33/extern/solid/src/complex/DT_BBoxTree.h
  175. --- blender-2.33-orig/extern/solid/src/complex/DT_BBoxTree.h 2004-02-16 16:59:05.000000000 +0100
  176. +++ blender-2.33/extern/solid/src/complex/DT_BBoxTree.h 2004-05-13 11:54:17.481644480 +0200
  177. @@ -136,7 +136,7 @@
  178. : DT_Pack<Shape1, Shape2>(a, b),
  179. m_margin(margin)
  180. {
  181. - m_b_cbox += computeCBox(margin, m_a.m_inv_xform);
  182. + this->m_b_cbox += computeCBox(margin, this->m_a.m_inv_xform);
  183. }
  184. MT_Scalar m_margin;
  185. @@ -185,7 +185,7 @@
  186. if (a.m_type == DT_BBoxTree::LEAF)
  187. {
  188. - return ::ray_cast(rd, a.m_index, source, target, lambda, normal);
  189. + return ray_cast(rd, a.m_index, source, target, lambda, normal);
  190. }
  191. else
  192. {
  193. diff -ur blender-2.33-orig/intern/iksolver/intern/TNT/vec.h blender-2.33/intern/iksolver/intern/TNT/vec.h
  194. --- blender-2.33-orig/intern/iksolver/intern/TNT/vec.h 2002-11-20 15:43:09.000000000 +0100
  195. +++ blender-2.33/intern/iksolver/intern/TNT/vec.h 2004-05-13 11:17:34.770507472 +0200
  196. @@ -296,11 +296,11 @@
  197. {
  198. Subscript N=A.dim();
  199. - s << N << endl;
  200. + s << N << std::endl;
  201. for (Subscript i=0; i<N; i++)
  202. - s << A[i] << " " << endl;
  203. - s << endl;
  204. + s << A[i] << " " << std::endl;
  205. + s << std::endl;
  206. return s;
  207. }