summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2010-04-29 15:45:29 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2010-04-29 15:45:29 +0000
commitcfea4053dfd0ec4e98e0dcac315350b7f2e05e4c (patch)
treef02b5b15c66a6696e0a4892a5fc120b4afec940b /games-sports/toycars/files
parentamd64 stable wrt #306359 (diff)
downloadgentoo-2-cfea4053dfd0ec4e98e0dcac315350b7f2e05e4c.tar.gz
gentoo-2-cfea4053dfd0ec4e98e0dcac315350b7f2e05e4c.tar.bz2
gentoo-2-cfea4053dfd0ec4e98e0dcac315350b7f2e05e4c.zip
improve use flag deps; add gcc45 patch from Kacper Kowalik (Xarthisius) via bug #317751
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'games-sports/toycars/files')
-rw-r--r--games-sports/toycars/files/toycars-0.3.10-gcc45.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/games-sports/toycars/files/toycars-0.3.10-gcc45.patch b/games-sports/toycars/files/toycars-0.3.10-gcc45.patch
new file mode 100644
index 000000000000..0e4f350a89dd
--- /dev/null
+++ b/games-sports/toycars/files/toycars-0.3.10-gcc45.patch
@@ -0,0 +1,37 @@
+Fixing compilation with gcc-4.5
+
+http://bugs.gentoo.org/show_bug.cgi?id=317751
+
+Patch written by Kacper Kowalik <xarthisius.kk@gmail.com>
+
+--- toycars_vehicle_editor/src/VehicleEditorUI.cxx
++++ toycars_vehicle_editor/src/VehicleEditorUI.cxx
+@@ -228,7 +228,7 @@
+ sprintf(str, "%d", n);
+ convexChoice->add(str);
+ convexChoice->value(n);
+-vehicleObj.getGeometry()->push_back(std::list<Vec2D>::list());
++vehicleObj.getGeometry()->push_back(std::list<Vec2D>());
+ spriteView->setConvexChoice(n);
+ spriteView->redraw();
+ }
+--- toycars_vehicle_editor/src/VehicleObject.cpp
++++ toycars_vehicle_editor/src/VehicleObject.cpp
+@@ -152,7 +152,7 @@
+ short count;
+ geometry.clear();
+ for (xConvex = xGeometry->FirstChild(); xConvex != NULL; xConvex = xConvex->NextSibling("convex")) {
+- geometry.push_back(std::list<Vec2D>::list());
++ geometry.push_back(std::list<Vec2D>());
+ std::list<Vec2D> &convex = geometry.back();
+ readPointsFromString(xConvex->FirstChild()->ToText()->Value(), convex, count);
+ }
+@@ -411,7 +411,7 @@
+ short count;
+ geometry.clear();
+ for (xConvex = xGeometry->FirstChild(); xConvex != NULL; xConvex = xConvex->NextSibling("convex")) {
+- geometry.push_back(std::list<Vec2D>::list());
++ geometry.push_back(std::list<Vec2D>());
+ std::list<Vec2D> &convex = geometry.back();
+ readPointsFromString(xConvex->FirstChild()->ToText()->Value(), convex, count);
+ }