diff --git a/Common/OpenFile.cpp b/Common/OpenFile.cpp index 1e32488c97ac7f75dffbb83c46ba952009f13c0c..b7054f2064f30b91a367b8a3736aff5571326fdd 100644 --- a/Common/OpenFile.cpp +++ b/Common/OpenFile.cpp @@ -440,6 +440,7 @@ int MergeFile(const std::string &fileName, bool warnIfMissing) int MergePostProcessingFile(const std::string &fileName, bool showLastStep, bool hideNewViews, bool warnIfMissing) { +#if defined(HAVE_POST) // check if there is a mesh in the file FILE *fp = fopen(fileName.c_str(), "rb"); if(!fp){ @@ -510,6 +511,9 @@ int MergePostProcessingFile(const std::string &fileName, bool showLastStep, } return ret; +#else + return 0; +#endif } void ClearProject()