Fixed includes for GCC 4.3 compatibility

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@50 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 9d6c9926ef9b36c2039f327effc7a44edf608852
Former-commit-id: f8c528c1464f02382ccd39f008c81db454cc407c
This commit is contained in:
pouillot 2008-10-06 20:55:23 +00:00
parent 3503441868
commit 9592b6ed8d
6 changed files with 5 additions and 50 deletions

View file

@ -12,34 +12,12 @@
// (at your option) any later version.
//
////////////////////////////////////////////////////////////////////////////
#if defined(__GNUC__) && __GNUC__ > 3 && __GNUC_MINOR__ > 2
#include <iostream>
#include <iomanip>
#include <fstream>
using namespace std;
#else
#include <iostream.h>
#include <iomanip.h>
#include <fstream.h>
#endif // __GNUC__
#ifndef WIN32
#if defined(__GNUC__) && __GNUC__ > 2
#include <strstream>
#else
#include <strstream.h>
#endif // __GNUC__
#endif // WIN32
//#include <iomanip.h>
// #include <iomanip> // GCC 4.3
#include <iomanip>
#include <math.h>
#include <stdlib.h>
//#include <fstream.h>
// #include <fstream> // GCC 4.3
#include <fstream>
#include <string.h>
#include "tgf.h"
@ -49,6 +27,8 @@ using namespace std;
#include "robot.h"
#include "robottools.h"
using namespace std;
////////////////////////////////////////////////////////////////////////////
// Parameters
////////////////////////////////////////////////////////////////////////////

View file

@ -14,14 +14,10 @@
#include <cassert>
#include <list>
#include <vector>
//#include <cstring> //GCC 4.3
#include <cstring>
#include "Trajectory.h"
#include <time.h>
#if defined(__GNUC__) && __GNUC__ > 3 &&__GNUC_MINOR__ > 2
#include <cstring>
#endif // __GNUC__
/// Return a point
Point Trajectory::GetPoint (Segment& s, float w)
{

View file

@ -32,13 +32,7 @@
#include "Transform.h"
#include <algorithm>
#if defined(__GNUC__) && __GNUC__ > 3 &&__GNUC_MINOR__ > 2
#include <new>
#else
#include <new.h>
#endif
// #include <new> // GCC 4.3
class BBoxCompAxis {
public:

View file

@ -32,12 +32,7 @@
#include "Transform.h"
#include "BBoxTree.h"
#if defined(__GNUC__) && __GNUC__ > 3 &&__GNUC_MINOR__ > 2
#include <new>
#else
#include <new.h>
#endif
// #include <new> // GCC 4.3
BBoxInternal *free_node;

View file

@ -32,12 +32,7 @@
#include "Object.h"
#include "Encounter.h"
#if defined(__GNUC__) && __GNUC__ > 3 &&__GNUC_MINOR__ > 2
#include <new>
#else
#include <new.h>
#endif
// #include <new> // GCC 4.3
void addPair(ObjectPtr object1, ObjectPtr object2);
void removePair(ObjectPtr object1, ObjectPtr object2);

View file

@ -33,12 +33,7 @@
#include "Convex.h"
#include "Complex.h"
#if defined(__GNUC__) && __GNUC__ > 3 &&__GNUC_MINOR__ > 2
#include <new>
#else
#include <new.h>
#endif
// #include <new> // GCC 4.3
Object::Object(DtObjectRef obj, ShapePtr shape) :
ref(obj),