#define DEVTRACE(msg)
#endif
-#ifdef WNT
+#ifdef WIN32
#pragma warning(disable:4251) // Warning DLL Interface ...
#endif
}
else
{
-#ifdef WNT
+#ifdef WIN32
MESSAGE("Killer : ThreadId " << ThreadId.p << " pthread_canceled") ;
#else
MESSAGE("Killer : ThreadId " << ThreadId << " pthread_canceled") ;
}
else
{
-#ifdef WNT
+#ifdef WIN32
MESSAGE("Killer : ThreadId " << ThreadId.p << " pthread_killed(" << signum << ")") ;
#else
MESSAGE("Killer : ThreadId " << ThreadId << " pthread_killed(" << signum << ")") ;
#include <SALOMEconfig.h>
#include CORBA_CLIENT_HEADER(SALOME_Session)
-#ifdef WNT
+#ifdef WIN32
#include <process.h>
#define getpid _getpid
#endif
command = BuildCommandToLaunchRemoteContainer(resource_selected, params, container_exe);
//redirect stdout and stderr in a file
-#ifdef WNT
+#ifdef WIN32
std::string logFilename=getenv("TEMP");
logFilename += "\\";
std::string user = getenv( "USERNAME" );
logFilename += tmp.str();
logFilename += ".log" ;
command += " > " + logFilename + " 2>&1";
-#ifdef WNT
+#ifdef WIN32
command = "%PYTHONBIN% -c \"import win32pm ; win32pm.spawnpid(r'" + command + "', '')\"";
#else
command += " &";
//
#include <string>
#include "DSC_interface.hxx"
-#ifdef WNT
+#ifdef WIN32
#else
#include <sys/time.h>
#endif
{
//trace in file
traceType=1;
-#ifdef WNT
+#ifdef WIN32
std::string logFilename=getenv("TEMP");
logFilename += "\\";
#else
initTrace(containerName);
if(traceLevel == 0)return;
-#ifdef WNT
+#ifdef WIN32
#else
struct timeval tv;
gettimeofday(&tv,0);
# define GENERICOBJ_EXPORT
#endif
-#ifdef WNT
+#ifdef WIN32
#pragma warning(disable:4275) // Disable warning interface non dll
#pragma warning(disable:4251) // Warning DLL Interface ...
#endif
#include <cstring>
#include <stdlib.h>
-#ifdef WNT
+#ifdef WIN32
#define strdup _strdup
#endif
#include <libbatch/Constants.hxx>
#endif
-#ifdef WNT
+#ifdef WIN32
#include <io.h>
#define _chmod chmod
#endif
#include <libbatch/Constants.hxx>
#endif
-#ifdef WNT
+#ifdef WIN32
#include <io.h>
#define _chmod chmod
#endif
std::string portNumber (::getenv ("NSPORT") );
if ( !portNumber.empty() )
{
-#ifdef WNT
+#ifdef WIN32
#else
std::string cmd ;
cmd = std::string( "ps -eo pid,command | grep -v grep | grep -E \"omniNames.*")
//
#include "utilities.h"
#include <iostream>
-#ifndef WNT
+#ifndef WIN32
#include <unistd.h>
#endif
#include <SALOMEconfig.h>
# define LOGGER_EXPORT
#endif
-#ifdef WNT
+#ifdef WIN32
#pragma warning(disable:4275) // Disable warning interface non dll
#endif
#include CORBA_SERVER_HEADER(SALOME_ModuleCatalog)
-#ifdef WNT
+#ifdef WIN32
#pragma warning(disable:4275) // Disable warning interface non dll
#pragma warning(disable:4290) // Warning Exception ...
#endif
#include <libxml/parser.h>
-#ifdef WNT
+#ifdef WIN32
#pragma warning(disable:4251) // Warning DLL Interface ...
#endif
#include <string>
#include <cstdio>
-#ifdef WNT
+#ifdef WIN32
#define strdup _strdup
#endif
#include "SALOME_NamingService_defs.hxx"
-#ifdef WNT
+#ifdef WIN32
#pragma warning(disable:4290) // Warning Exception ...
#endif
#include "SALOME_NOTIFICATION.hxx"
-#ifdef WNT
+#ifdef WIN32
#pragma warning(disable:4275) // Disable warning interface non dll
#endif
# include <map>
-#ifdef WNT
+#ifdef WIN32
#pragma warning(disable:4275) // Disable warning interface non dll
#pragma warning(disable:4251) // Warning DLL Interface ...
#endif
#include <list>
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef WNT
+#ifdef WIN32
#else
#include <unistd.h>
#endif
#include "SALOME_LoadRateManager.hxx"
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef WNT
+#ifdef WIN32
#else
#include <unistd.h>
#endif
-#ifdef WNT
+#ifdef WIN32
#pragma warning(disable:4251) // Warning DLL Interface ...
#pragma warning(disable:4290) // Warning Exception ...
#endif
#include <map>
#include <iostream>
-#ifdef WNT
+#ifdef WIN32
#pragma warning(disable:4251) // Warning DLL Interface ...
#endif
# define SALOMERESOURCESMANAGER_EXPORT
#endif
-#ifdef WNT
+#ifdef WIN32
#pragma warning(disable:4275) // Disable warning interface non dll
#endif
#include <errno.h>
#include <string.h>
-#ifndef WNT
+#ifndef WIN32
#include <unistd.h>
#else
#include <winsock2.h>
#include "Utils_CommException.hxx"
-#ifdef WNT
+#ifdef WIN32
#pragma warning(disable:4251) // Warning DLL Interface ...
#pragma warning(disable:4290) // Warning Exception ...
#endif