Keep compatible with gcc 2

This commit is contained in:
jrt 2003-09-23 14:33:41 +00:00
parent 3297595671
commit bef8537764
7 changed files with 15 additions and 8 deletions

View File

@ -22,7 +22,7 @@
#ifndef _SMDS_FaceOfEdges_HeaderFile #ifndef _SMDS_FaceOfEdges_HeaderFile
#define _SMDS_FaceOfEdges_HeaderFile #define _SMDS_FaceOfEdges_HeaderFile
#include <ostream> #include <iostream>
#include "SMDS_MeshFace.hxx" #include "SMDS_MeshFace.hxx"
#include "SMDS_MeshEdge.hxx" #include "SMDS_MeshEdge.hxx"
#include "SMDS_Iterator.hxx" #include "SMDS_Iterator.hxx"

View File

@ -22,7 +22,7 @@
#ifndef _SMDS_FaceOfNodes_HeaderFile #ifndef _SMDS_FaceOfNodes_HeaderFile
#define _SMDS_FaceOfNodes_HeaderFile #define _SMDS_FaceOfNodes_HeaderFile
#include <ostream> #include <iostream>
#include "SMDS_MeshFace.hxx" #include "SMDS_MeshFace.hxx"
#include "SMDS_MeshNode.hxx" #include "SMDS_MeshNode.hxx"
#include "SMDS_Iterator.hxx" #include "SMDS_Iterator.hxx"

View File

@ -28,7 +28,7 @@
#define _SMDS_MeshEdge_HeaderFile #define _SMDS_MeshEdge_HeaderFile
#include "SMDS_MeshElement.hxx" #include "SMDS_MeshElement.hxx"
#include <ostream> #include <iostream>
class SMDS_MeshEdge:public SMDS_MeshElement class SMDS_MeshEdge:public SMDS_MeshElement
{ {

View File

@ -33,7 +33,7 @@
#include "SMDS_MeshElementIDFactory.hxx" #include "SMDS_MeshElementIDFactory.hxx"
#include <vector> #include <vector>
#include <ostream> #include <iostream>
using namespace std; using namespace std;
class SMDS_MeshNode; class SMDS_MeshNode;

View File

@ -22,7 +22,7 @@
#ifndef _SMDS_Tria3OfNodes_HeaderFile #ifndef _SMDS_Tria3OfNodes_HeaderFile
#define _SMDS_Tria3OfNodes_HeaderFile #define _SMDS_Tria3OfNodes_HeaderFile
#include <ostream> #include <iostream>
#include "SMDS_MeshFace.hxx" #include "SMDS_MeshFace.hxx"
#include "SMDS_MeshNode.hxx" #include "SMDS_MeshNode.hxx"
#include "SMDS_Iterator.hxx" #include "SMDS_Iterator.hxx"

View File

@ -31,7 +31,7 @@
#include "SMDS_MeshFace.hxx" #include "SMDS_MeshFace.hxx"
#include "SMDS_Iterator.hxx" #include "SMDS_Iterator.hxx"
#include <vector> #include <vector>
#include <ostream> #include <iostream>
using namespace std; using namespace std;
class SMDS_VolumeOfFaces:public SMDS_MeshVolume class SMDS_VolumeOfFaces:public SMDS_MeshVolume

View File

@ -42,9 +42,16 @@
#include <TopoDS_Face.hxx> #include <TopoDS_Face.hxx>
#include <TopoDS_Vertex.hxx> #include <TopoDS_Vertex.hxx>
#include <TopoDS_Edge.hxx> #include <TopoDS_Edge.hxx>
//Not portable see http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#5_4 to know more. //Not portable see http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#5_4 to know more.
#include <ext/hash_map> #ifdef __GNUC__
using namespace __gnu_cxx; #if __GNUC__ < 3
#include <hash_map.h>
#else
#include <ext/hash_map>
using namespace __gnu_cxx;
#endif
#endif
using namespace std; using namespace std;