]> SALOME platform Git repositories - modules/kernel.git/blobdiff - src/Launcher/Launcher_Utils.hxx
Salome HOME
Compilation under Windows: add missing header
[modules/kernel.git] / src / Launcher / Launcher_Utils.hxx
index 57d2ccb496a750d4b38e1e7490694d6930e6cab3..e5bfe7d19527e7084a99445b56decab401b68eff 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 # 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
 
+#if defined(_DEBUG_) || defined(_DEBUG)
+//#define LAUNCHER_DEGBUG
+#endif
+
 // MESSAGES
 #define LAUNCHER_MESS_INIT(deb) std::cerr << deb
 #define LAUNCHER_MESS_BEGIN(deb) LAUNCHER_MESS_INIT(deb)<<__FILE__ <<" ["<<__LINE__<<"] : "
 #define LAUNCHER_MESS_END std::endl;
 #define LAUNCHER_INFOS(msg) {LAUNCHER_MESS_BEGIN("- Trace ") << msg << LAUNCHER_MESS_END}
 
-#if defined(_DEBUG_) || defined(_DEBUG)
+#if defined(LAUNCHER_DEGBUG)
 #define LAUNCHER_MESSAGE(msg) {LAUNCHER_MESS_BEGIN("- Trace ") << msg << LAUNCHER_MESS_END}
-#else /* ifdef _DEBUG_*/
+#else /* ifdef LAUNCHER_DEGBUG*/
 #define LAUNCHER_MESSAGE(msg) {}
-#endif /* ifdef _DEBUG_*/
+#endif /* ifdef LAUNCHER_DEGBUG*/
 
 class LAUNCHER_EXPORT LauncherException
 {