From e59e20ad6a9dd84f36e98a2f437b3971c59a4c68 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 12 Aug 2013 10:52:22 +0000 Subject: [PATCH] Merge from V7_2_BR 09/08/2013 --- src/HexoticPlugin/HexoticPlugin_Hexotic.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) 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; -- 2.39.2