PKGBUILDs/community/torcs/torcs-gcc.patch
2009-10-09 21:15:33 -05:00

74 lines
2.7 KiB
Diff

diff -aur src.old/drivers/olethros/Trajectory.cpp src/drivers/olethros/Trajectory.cpp
--- src.old/drivers/olethros/Trajectory.cpp 2008-04-06 22:21:31.000000000 +0200
+++ src/drivers/olethros/Trajectory.cpp 2008-04-06 22:28:52.000000000 +0200
@@ -10,8 +10,10 @@
***************************************************************************/
#include <cstdio>
#include <cstdlib>
+#include <cstring>
#include <cmath>
#include <cassert>
+#include <ctime>
#include <list>
#include <vector>
#include "Trajectory.h"
diff -aur src.old/modules/simu/simuv2/SOLID-2.0/src/BBoxTree.cpp src/modules/simu/simuv2/SOLID-2.0/src/BBoxTree.cpp
--- src.old/modules/simu/simuv2/SOLID-2.0/src/BBoxTree.cpp 2008-04-06 22:21:31.000000000 +0200
+++ src/modules/simu/simuv2/SOLID-2.0/src/BBoxTree.cpp 2008-04-06 22:22:57.000000000 +0200
@@ -32,7 +32,7 @@
#include "Transform.h"
#include <algorithm>
-#include <new.h>
+#include <new>
class BBoxCompAxis {
public:
diff -aur src.old/modules/simu/simuv2/SOLID-2.0/src/Complex.cpp src/modules/simu/simuv2/SOLID-2.0/src/Complex.cpp
--- src.old/modules/simu/simuv2/SOLID-2.0/src/Complex.cpp 2008-04-06 22:21:31.000000000 +0200
+++ src/modules/simu/simuv2/SOLID-2.0/src/Complex.cpp 2008-04-06 22:23:11.000000000 +0200
@@ -32,7 +32,7 @@
#include "Transform.h"
#include "BBoxTree.h"
-#include <new.h>
+#include <new>
BBoxInternal *free_node;
diff -aur src.old/modules/simu/simuv2/SOLID-2.0/src/Endpoint.cpp src/modules/simu/simuv2/SOLID-2.0/src/Endpoint.cpp
--- src.old/modules/simu/simuv2/SOLID-2.0/src/Endpoint.cpp 2008-04-06 22:21:31.000000000 +0200
+++ src/modules/simu/simuv2/SOLID-2.0/src/Endpoint.cpp 2008-04-06 22:22:29.000000000 +0200
@@ -32,7 +32,7 @@
#include "Object.h"
#include "Encounter.h"
-#include <new.h>
+#include <new>
void addPair(ObjectPtr object1, ObjectPtr object2);
void removePair(ObjectPtr object1, ObjectPtr object2);
diff -aur src.old/modules/simu/simuv2/SOLID-2.0/src/Object.cpp src/modules/simu/simuv2/SOLID-2.0/src/Object.cpp
--- src.old/modules/simu/simuv2/SOLID-2.0/src/Object.cpp 2008-04-06 22:21:31.000000000 +0200
+++ src/modules/simu/simuv2/SOLID-2.0/src/Object.cpp 2008-04-06 22:22:40.000000000 +0200
@@ -33,7 +33,7 @@
#include "Convex.h"
#include "Complex.h"
-#include <new.h>
+#include <new>
Object::Object(DtObjectRef obj, ShapePtr shape) :
ref(obj),
diff -aur src.old/modules/simu/simuv2/SOLID-2.0/src/Polyhedron.cpp src/modules/simu/simuv2/SOLID-2.0/src/Polyhedron.cpp
--- src.old/modules/simu/simuv2/SOLID-2.0/src/Polyhedron.cpp 2008-04-06 22:21:31.000000000 +0200
+++ src/modules/simu/simuv2/SOLID-2.0/src/Polyhedron.cpp 2008-04-06 22:22:12.000000000 +0200
@@ -37,7 +37,7 @@
}
#include <vector>
-#include <new.h>
+#include <new>
typedef vector<unsigned int> IndexBuf;