aboutsummaryrefslogtreecommitdiff
path: root/games/toycars
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2013-10-01 20:24:27 +0000
committerJohn Marino <marino@FreeBSD.org>2013-10-01 20:24:27 +0000
commitea43b138242a91881df0403f1aa5f850a5621391 (patch)
tree943812d794fcbb7ea08c0c6795cd3d0eee6b1b50 /games/toycars
parent193f79a08f4aa101da12cf310c04492125bec515 (diff)
downloadports-ea43b138242a91881df0403f1aa5f850a5621391.tar.gz
ports-ea43b138242a91881df0403f1aa5f850a5621391.zip
games/toycars: add <unistd.h> and other C++ fixes for modern compilers
Approved by: portmgr (bapt, implicit)
Notes
Notes: svn path=/head/; revision=328990
Diffstat (limited to 'games/toycars')
-rw-r--r--games/toycars/files/patch-toycars__vehicle__editor_src_VehicleEditorUI.cxx11
-rw-r--r--games/toycars/files/patch-toycars__vehicle__editor_src_VehicleObject.cpp27
-rw-r--r--games/toycars/files/patch-toycars_src_MyFisix_Convex.h10
3 files changed, 48 insertions, 0 deletions
diff --git a/games/toycars/files/patch-toycars__vehicle__editor_src_VehicleEditorUI.cxx b/games/toycars/files/patch-toycars__vehicle__editor_src_VehicleEditorUI.cxx
new file mode 100644
index 000000000000..692b2e607fd8
--- /dev/null
+++ b/games/toycars/files/patch-toycars__vehicle__editor_src_VehicleEditorUI.cxx
@@ -0,0 +1,11 @@
+--- toycars_vehicle_editor/src/VehicleEditorUI.cxx.orig 2009-02-28 14:50:41.000000000 +0000
++++ toycars_vehicle_editor/src/VehicleEditorUI.cxx
+@@ -228,7 +228,7 @@ char str[64];
+ 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();
+ }
diff --git a/games/toycars/files/patch-toycars__vehicle__editor_src_VehicleObject.cpp b/games/toycars/files/patch-toycars__vehicle__editor_src_VehicleObject.cpp
new file mode 100644
index 000000000000..6fef44efe99e
--- /dev/null
+++ b/games/toycars/files/patch-toycars__vehicle__editor_src_VehicleObject.cpp
@@ -0,0 +1,27 @@
+--- toycars_vehicle_editor/src/VehicleObject.cpp.orig 2009-03-22 19:45:31.000000000 +0000
++++ toycars_vehicle_editor/src/VehicleObject.cpp
+@@ -152,7 +152,7 @@ void VehicleObject::loadVehicle(const ch
+ 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 @@ void VehicleObject::loadSpriteFromDataDi
+ 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);
+ }
+@@ -675,4 +675,4 @@ void VehicleObject::uninstallVehicle(con
+ system(str);
+ */
+ #endif
+-}
+\ No newline at end of file
++}
diff --git a/games/toycars/files/patch-toycars_src_MyFisix_Convex.h b/games/toycars/files/patch-toycars_src_MyFisix_Convex.h
new file mode 100644
index 000000000000..de3bb37c9dfb
--- /dev/null
+++ b/games/toycars/files/patch-toycars_src_MyFisix_Convex.h
@@ -0,0 +1,10 @@
+--- toycars/src/MyFisix/Convex.h.orig 2008-09-09 10:14:27.000000000 +0000
++++ toycars/src/MyFisix/Convex.h
+@@ -21,6 +21,7 @@
+ #include "config.h"
+ #endif
+
++#include <unistd.h>
+ #include <list>
+ using namespace std;
+