Salome HOME
PAL10719: Portability gcc4.0.1. Fix by Erwan ADAM.
authorjfa <jfa@opencascade.com>
Thu, 1 Dec 2005 13:13:57 +0000 (13:13 +0000)
committerjfa <jfa@opencascade.com>
Thu, 1 Dec 2005 13:13:57 +0000 (13:13 +0000)
src/SMESHDS/SMESHDS_Mesh.hxx

index 459d30848aa5c34c7d27f0c93419ba460ad45b6e..b706d9fff7440001ffc61c8770a97fba9633f79c 100644 (file)
   #if __GNUC__ < 3
     #include <hash_map.h>
     namespace gstd { using ::hash_map; }; // inherit globals
-  #else
+  #elif __GNUC__ == 3
     #include <ext/hash_map>
     #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 <ext/hash_map>
+    namespace gstd = ::__gnu_cxx;
   #endif
 #else      // ...  there are other compilers, right?
   namespace gstd = std;