From: rnv Date: Thu, 30 May 2019 11:48:30 +0000 (+0300) Subject: Build KERNEL module on Windows platform. X-Git-Tag: EMC2P_V1_1_0~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=147b14f3df8dccd740c08b3c3ecab94e86385f1e;p=modules%2Fkernel.git Build KERNEL module on Windows platform. --- diff --git a/src/Launcher/Launcher_Job_CommandSALOME.hxx b/src/Launcher/Launcher_Job_CommandSALOME.hxx index 9df2496c8..9f09df8e6 100644 --- a/src/Launcher/Launcher_Job_CommandSALOME.hxx +++ b/src/Launcher/Launcher_Job_CommandSALOME.hxx @@ -24,6 +24,7 @@ #include "Launcher_Job_Command.hxx" #include "Launcher.hxx" +#include "Launcher_Utils.hxx" #ifdef WITH_LIBBATCH #include diff --git a/src/Launcher/Launcher_Job_PythonSALOME.hxx b/src/Launcher/Launcher_Job_PythonSALOME.hxx index bfce02639..61dd1cdaf 100644 --- a/src/Launcher/Launcher_Job_PythonSALOME.hxx +++ b/src/Launcher/Launcher_Job_PythonSALOME.hxx @@ -23,6 +23,7 @@ #define _LAUNCHER_JOB_PYTHONSALOME_HXX_ #include "Launcher_Job_SALOME.hxx" +#include "Launcher_Utils.hxx" namespace Launcher { diff --git a/src/Launcher/Launcher_Job_SALOME.hxx b/src/Launcher/Launcher_Job_SALOME.hxx index 9d0303b5a..8178965ba 100644 --- a/src/Launcher/Launcher_Job_SALOME.hxx +++ b/src/Launcher/Launcher_Job_SALOME.hxx @@ -24,6 +24,7 @@ #include "Launcher_Job.hxx" #include "Launcher.hxx" +#include "Launcher_Utils.hxx" #ifdef WITH_LIBBATCH #include diff --git a/src/Launcher/Launcher_Job_YACSFile.hxx b/src/Launcher/Launcher_Job_YACSFile.hxx index 1a76291d5..1a3865f84 100644 --- a/src/Launcher/Launcher_Job_YACSFile.hxx +++ b/src/Launcher/Launcher_Job_YACSFile.hxx @@ -23,6 +23,7 @@ #define _LAUNCHER_JOB_YACSFILE_HXX_ #include "Launcher_Job_SALOME.hxx" +#include "Launcher_Utils.hxx" namespace Launcher { diff --git a/src/Launcher/Launcher_Utils.hxx b/src/Launcher/Launcher_Utils.hxx index 3b0bafaa8..c044f6aa7 100644 --- a/src/Launcher/Launcher_Utils.hxx +++ b/src/Launcher/Launcher_Utils.hxx @@ -30,6 +30,11 @@ # else # define LAUNCHER_EXPORT __declspec(dllimport) # endif + +#ifndef S_ISREG +#define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) +#endif + #else # define LAUNCHER_EXPORT #endif