From: jfa Date: Thu, 1 Dec 2005 13:13:57 +0000 (+0000) Subject: PAL10719: Portability gcc4.0.1. Fix by Erwan ADAM. X-Git-Tag: T_2_2_7pre~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8c25570431118bfd037aaa58521535b2659a1076;p=modules%2Fsmesh.git PAL10719: Portability gcc4.0.1. Fix by Erwan ADAM. --- diff --git a/src/SMESHDS/SMESHDS_Mesh.hxx b/src/SMESHDS/SMESHDS_Mesh.hxx index 459d30848..b706d9fff 100644 --- a/src/SMESHDS/SMESHDS_Mesh.hxx +++ b/src/SMESHDS/SMESHDS_Mesh.hxx @@ -49,13 +49,16 @@ #if __GNUC__ < 3 #include namespace gstd { using ::hash_map; }; // inherit globals - #else + #elif __GNUC__ == 3 #include #if __GNUC_MINOR__ == 0 namespace gstd = std; // GCC 3.0 #else namespace gstd = ::__gnu_cxx; // GCC 3.1 and later #endif + #else // GCC 4.0 and later + #include + namespace gstd = ::__gnu_cxx; #endif #else // ... there are other compilers, right? namespace gstd = std;