#ifndef WIN32
#include <sys/sysinfo.h>
+#else
+#include <errno.h>
#endif
#ifdef _DEBUG_
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;