From: vsr Date: Mon, 12 Aug 2013 10:52:22 +0000 (+0000) Subject: Merge from V7_2_BR 09/08/2013 X-Git-Tag: V7_3_0a1~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e59e20ad6a9dd84f36e98a2f437b3971c59a4c68;p=plugins%2Fhexoticplugin.git Merge from V7_2_BR 09/08/2013 --- diff --git a/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx b/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx index 357364e..bdaa99c 100644 --- a/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx +++ b/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx @@ -29,6 +29,8 @@ #ifndef WIN32 #include +#else +#include #endif #ifdef _DEBUG_ @@ -1140,8 +1142,15 @@ bool HexoticPlugin_Hexotic::Compute(SMESH_Mesh& aMesh, if ( std::search( fileBeg, fileEnd, msgLic, msgLic+strlen(msgLic)) != fileEnd ) error("Licence problems."); } +#ifndef WIN32 if ( status > 0 && WEXITSTATUS(status) == 127 ) error("hexotic: command not found"); +#else + int err = errno; + if ( status == 0 && err == ENOENT ) { + error("hexotic: command not found"); + } +#endif } cout << "Hexahedra meshing " << hexahedraMessage << std::endl; cout << std::endl;