Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Keep compatible with gcc 2
[modules/smesh.git]
/
src
/
SMESHDS
/
SMESHDS_Mesh.hxx
diff --git
a/src/SMESHDS/SMESHDS_Mesh.hxx
b/src/SMESHDS/SMESHDS_Mesh.hxx
index ce7d49a87f7bec0f7439167d4a2a2f39d545f948..6159a4fca69bb143cdc7bd1520d4894cee54436b 100644
(file)
--- a/
src/SMESHDS/SMESHDS_Mesh.hxx
+++ b/
src/SMESHDS/SMESHDS_Mesh.hxx
@@
-42,9
+42,16
@@
#include <TopoDS_Face.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Edge.hxx>
#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.
//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;
using namespace std;