//check if Makefile file exists
std::string pathMakefile = pathFixed + CDMUtilities::SLASH + "Makefile";
FILE* pFile;
+#ifdef _WIN32
errno_t errorOpen = fopen_s(&pFile, pathMakefile.c_str(), "r");
-
+#else
+ pFile = fopen(pathMakefile.c_str(), "r");
+ bool errorOpen = (pFile == NULL);
+#endif
//is the binary folder
if (!errorOpen && pFile)
{
std::string pathSource = "";
//check if CMakeLists file exists
std::string pathCMakeLists = pathFixed + CDMUtilities::SLASH + "CMakeLists.txt";
+#ifdef _WIN32
errorOpen = fopen_s(&pFile, pathCMakeLists.c_str(), "r");
+#else
+ pFile = fopen(pathCMakeLists.c_str(), "r");
+ errorOpen = (pFile == NULL);
+#endif
//is the source folder
if (!errorOpen && pFile)