From 02cd626883165bc6d00bc82e55d239b28760bdbd Mon Sep 17 00:00:00 2001 From: abd Date: Tue, 7 Oct 2008 11:27:52 +0000 Subject: [PATCH] Fix compilation errors on Win32 platform --- src/Basics/Basics_DirUtils.cxx | 3 +++ src/Communication/SALOMEMultiComm.cxx | 1 - src/Container/Component_i.cxx | 2 +- src/HDFPersist/HDFinternalObject.cc | 2 -- src/Launcher/Launcher.cxx | 4 ++++ src/ResourcesManager/ResourcesManager.cxx | 2 ++ 6 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/Basics/Basics_DirUtils.cxx b/src/Basics/Basics_DirUtils.cxx index 445377e08..4e5772da5 100644 --- a/src/Basics/Basics_DirUtils.cxx +++ b/src/Basics/Basics_DirUtils.cxx @@ -29,6 +29,9 @@ #ifndef WIN32 # include +#else +# include +# include #endif using namespace std; diff --git a/src/Communication/SALOMEMultiComm.cxx b/src/Communication/SALOMEMultiComm.cxx index 31e3f1efe..f268af917 100644 --- a/src/Communication/SALOMEMultiComm.cxx +++ b/src/Communication/SALOMEMultiComm.cxx @@ -18,7 +18,6 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #include "SALOMEMultiComm.hxx" -using namespace std; SALOMEMultiComm::SALOMEMultiComm():_type(SALOME::CORBA_) { diff --git a/src/Container/Component_i.cxx b/src/Container/Component_i.cxx index 4ee68ae66..269b0ed87 100644 --- a/src/Container/Component_i.cxx +++ b/src/Container/Component_i.cxx @@ -30,7 +30,7 @@ #include "SALOME_Component_i.hxx" #include "SALOME_Container_i.hxx" #include "RegistryConnexion.hxx" -#include "OpUtil.hxx" +#include "Basics_Utils.hxx" #include #ifndef WIN32 #include diff --git a/src/HDFPersist/HDFinternalObject.cc b/src/HDFPersist/HDFinternalObject.cc index 3ea1f0364..7a5fb6f0e 100644 --- a/src/HDFPersist/HDFinternalObject.cc +++ b/src/HDFPersist/HDFinternalObject.cc @@ -30,8 +30,6 @@ extern "C" } #include "HDFinternalObject.hxx" -using namespace std; - HDFinternalObject::HDFinternalObject(const char *name) : HDFobject(name) { diff --git a/src/Launcher/Launcher.cxx b/src/Launcher/Launcher.cxx index 589ec566f..ed4641f00 100644 --- a/src/Launcher/Launcher.cxx +++ b/src/Launcher/Launcher.cxx @@ -29,6 +29,10 @@ #include #include +#ifdef WIN32 +# include +#endif + using namespace std; //============================================================================= diff --git a/src/ResourcesManager/ResourcesManager.cxx b/src/ResourcesManager/ResourcesManager.cxx index f872abb84..5ac93142d 100644 --- a/src/ResourcesManager/ResourcesManager.cxx +++ b/src/ResourcesManager/ResourcesManager.cxx @@ -32,6 +32,8 @@ #ifndef WIN32 # include +#else +# include #endif #define MAX_SIZE_FOR_HOSTNAME 256; -- 2.39.2