From 7fbe7100ee04652b4a7c6a215b556632dbb106ae Mon Sep 17 00:00:00 2001 From: env Date: Tue, 26 Jul 2005 09:51:37 +0000 Subject: [PATCH] ENV: Windows porting. --- src/LifeCycleCORBA/SALOME_LifeCycleCORBA.hxx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.hxx b/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.hxx index d5d82f97a..f5d55912b 100644 --- a/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.hxx +++ b/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.hxx @@ -40,16 +40,31 @@ #include CORBA_CLIENT_HEADER(SALOME_ContainerManager) #include CORBA_CLIENT_HEADER(SALOME_Component) +#if defined LIFECYCLECORBA_EXPORTS +#if defined WIN32 +#define LIFECYCLECORBA_EXPORT __declspec( dllexport ) +#else +#define LIFECYCLECORBA_EXPORT +#endif +#else +#if defined WNT +#define LIFECYCLECORBA_EXPORT __declspec( dllimport ) +#else +#define LIFECYCLECORBA_EXPORT +#endif +#endif + + class SALOME_NamingService; -class IncompatibleComponent : public SALOME_Exception +class LIFECYCLECORBA_EXPORT IncompatibleComponent : public SALOME_Exception { public : IncompatibleComponent( void ); IncompatibleComponent( const IncompatibleComponent &ex ); } ; -class SALOME_LifeCycleCORBA +class LIFECYCLECORBA_EXPORT SALOME_LifeCycleCORBA { public: SALOME_LifeCycleCORBA(SALOME_NamingService *ns = 0); -- 2.39.2