Salome HOME
feat: new crackAlong method
[tools/medcoupling.git] / src / MEDLoader / MeshFormatReader.hxx
index fb63e6fefb91d57258ac125bb9dd676ac09c18cc..d87929d6b68640be5e5638000ca8aabaea9c29da 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2021  CEA/DEN, EDF R&D
+// Copyright (C) 2021-2024  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -35,7 +35,7 @@
 
 #include <fstream>
 
-#ifndef WIN32
+#if !defined(WIN32) && !defined(__APPLE__)
 #include <features.h>
 #endif
 
@@ -112,11 +112,7 @@ namespace MEDCoupling
       else
       {
         std::vector<MeshFormatElement> *tmpVec2 = aMap[removeFromFamily.first];
-#if !defined WIN32 && __GNUC_PREREQ(4, 9)
-        std::vector<MeshFormatElement>::const_iterator itt2;
-#else
         std::vector<MeshFormatElement>::iterator itt2;
-#endif
         const MeshFormatElement e = removeFromFamily.second;
         itt2 = std::find(tmpVec2->begin(), tmpVec2->end(), e);
         if (itt2 != tmpVec2->end())
@@ -148,6 +144,7 @@ namespace MEDCoupling
         return _meshFormatFamsNodes;
         break;
       }
+      THROW_IK_EXCEPTION("getMapAtLevel : dimRelMax must be in [0,-1,-2,1]");
     }
 
   public: