Date: Tue, 1 Oct 2013 20:24:27 +0000 (UTC) From: John Marino <marino@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r328990 - head/games/toycars/files Message-ID: <201310012024.r91KORGK085021@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marino Date: Tue Oct 1 20:24:27 2013 New Revision: 328990 URL: http://svnweb.freebsd.org/changeset/ports/328990 Log: games/toycars: add <unistd.h> and other C++ fixes for modern compilers Approved by: portmgr (bapt, implicit) Added: head/games/toycars/files/patch-toycars__vehicle__editor_src_VehicleEditorUI.cxx (contents, props changed) head/games/toycars/files/patch-toycars__vehicle__editor_src_VehicleObject.cpp (contents, props changed) head/games/toycars/files/patch-toycars_src_MyFisix_Convex.h (contents, props changed) Added: head/games/toycars/files/patch-toycars__vehicle__editor_src_VehicleEditorUI.cxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/toycars/files/patch-toycars__vehicle__editor_src_VehicleEditorUI.cxx Tue Oct 1 20:24:27 2013 (r328990) @@ -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(); + } Added: head/games/toycars/files/patch-toycars__vehicle__editor_src_VehicleObject.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/toycars/files/patch-toycars__vehicle__editor_src_VehicleObject.cpp Tue Oct 1 20:24:27 2013 (r328990) @@ -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 ++} Added: head/games/toycars/files/patch-toycars_src_MyFisix_Convex.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/toycars/files/patch-toycars_src_MyFisix_Convex.h Tue Oct 1 20:24:27 2013 (r328990) @@ -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; +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310012024.r91KORGK085021>