Salome HOME
add GMSH+GMSHPLUGIN windows
[tools/sat_salome.git] / products / patches / GMSHPlugin_Mesher-ctx.patch
1 diff --git a/src/GMSHPlugin/GMSHPlugin_Mesher.cxx b/src/GMSHPlugin/GMSHPlugin_Mesher.cxx
2 index 8ac85b5..3a5c1ad 100644
3 --- a/src/GMSHPlugin/GMSHPlugin_Mesher.cxx
4 +++ b/src/GMSHPlugin/GMSHPlugin_Mesher.cxx
5 @@ -1028,8 +1028,10 @@ void  GMSHPlugin_Mesher::mymsg::operator()(std::string level, std::string msg)
6      }
7      if (level == "Fatal")
8      {
9 +#ifndef WIN32
10          CTX::instance()->lock = 0;
11          throw oss.str();
12 +#endif
13      }
14      else
15          printf("%s\n", oss.str().c_str());