From a4a1062443a31541039e7f7a9ba23feb2ab41bb4 Mon Sep 17 00:00:00 2001 From: ana Date: Mon, 15 Mar 2010 14:45:59 +0000 Subject: [PATCH] Windows compatibility --- src/SMESH/SMESH_File.hxx | 6 ++++++ src/SMESH/SMESH_MeshEditor.cxx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/SMESH/SMESH_File.hxx b/src/SMESH/SMESH_File.hxx index b1045e331..130c1f548 100644 --- a/src/SMESH/SMESH_File.hxx +++ b/src/SMESH/SMESH_File.hxx @@ -32,6 +32,12 @@ #include #include +#ifdef WNT +#include +#else +#include +#endif + /*! * \brief High level util for effective file reading and other file operations */ diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index 259c09fad..3f496e87f 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -6133,7 +6133,7 @@ void SMESH_ElementSearcherImpl::findOuterBoundary(const SMDS_MeshElement* outerF gp_Vec dirInOF = gp_Vec( ofNorm ) ^ n1n2; // sort all other faces by angle with the dirInOF map< double, const SMDS_MeshElement* > angle2Face; - set< const SMDS_MeshElement* >::const_iterator face = faces.begin(); + set< const SMDS_MeshElement*, TIDCompare >::const_iterator face = faces.begin(); for ( ; face != faces.end(); ++face ) { if ( !SMESH_Algo::FaceNormal( *face, fNorm, /*normalized=*/false )) -- 2.39.2