From 97a72aa9878494cfe443fc8cefdb9db53f8b3daf Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 2 May 2007 04:51:27 +0000 Subject: [PATCH] Porting on Win32 system. --- src/Container/SALOME_ContainerManager.cxx | 11 ++++++++++- src/NOTIFICATION_SWIG/NOTIFICATION.i | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Container/SALOME_ContainerManager.cxx b/src/Container/SALOME_ContainerManager.cxx index e98a7b77c..0310093c9 100644 --- a/src/Container/SALOME_ContainerManager.cxx +++ b/src/Container/SALOME_ContainerManager.cxx @@ -303,7 +303,11 @@ FindOrStartParallelContainer(const Engines::MachineParameters& params_const, for (int i = 0; i < params.nb_component_nodes; i++) { char buffer [5]; - snprintf(buffer,5,"%d",i); +#ifndef WNT + snprintf(buffer,5,"%d",i); +#else + _snprintf(buffer,5,"%d",i); +#endif string name_cont = name + string(buffer); string theNodeMachine(CORBA::string_dup(params.hostname)); @@ -528,7 +532,12 @@ SALOME_ContainerManager::LaunchParallelContainer(const std::string& command, // Name of the node char buffer [5]; +#ifndef WNT snprintf(buffer,5,"%d",i); +#else + _snprintf(buffer,5,"%d",i); +#endif + string name_cont = name + string(buffer); // I don't like this... diff --git a/src/NOTIFICATION_SWIG/NOTIFICATION.i b/src/NOTIFICATION_SWIG/NOTIFICATION.i index af90cd8ee..ccd684c2f 100644 --- a/src/NOTIFICATION_SWIG/NOTIFICATION.i +++ b/src/NOTIFICATION_SWIG/NOTIFICATION.i @@ -29,7 +29,7 @@ %{ -#define __declspec(a) +//#define __declspec(a) #include "NOTIFICATION_Swig.hxx" %} -- 2.39.2