Salome HOME
Keep compatible with gcc 2
[modules/smesh.git] / src / SMESHDS / SMESHDS_Mesh.hxx
index ce7d49a87f7bec0f7439167d4a2a2f39d545f948..6159a4fca69bb143cdc7bd1520d4894cee54436b 100644 (file)
 #include <TopoDS_Face.hxx>
 #include <TopoDS_Vertex.hxx>
 #include <TopoDS_Edge.hxx>
+
 //Not portable see http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#5_4 to know more.
-#include <ext/hash_map>
-using namespace __gnu_cxx;
+#ifdef __GNUC__
+#if __GNUC__ < 3
+       #include <hash_map.h>
+#else
+       #include <ext/hash_map>
+       using namespace __gnu_cxx;
+#endif
+#endif
 
 using namespace std;