X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHELLO%2FHELLO.hxx;h=9e04e52d3bd89741b83c1f6584c0f4d6bea9af64;hb=983155580ea04595cd630e7b6a6c30076e346f60;hp=325ec96a54dba79154507542ac600a48a7ff894c;hpb=f4857ea7f596f23d5cba98fe961d9e7c6d6f3961;p=samples%2Fhello.git diff --git a/src/HELLO/HELLO.hxx b/src/HELLO/HELLO.hxx index 325ec96..9e04e52 100644 --- a/src/HELLO/HELLO.hxx +++ b/src/HELLO/HELLO.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -6,7 +6,7 @@ // 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 @@ -23,11 +23,22 @@ #ifndef _HELLO_HXX_ #define _HELLO_HXX_ +#ifdef WIN32 +# if defined HELLOENGINE_EXPORTS || defined HELLOEngine_EXPORTS +# define HELLOENGINE_EXPORT __declspec( dllexport ) +# else +# define HELLOENGINE_EXPORT __declspec( dllimport ) +# endif +#else +# define HELLOENGINE_EXPORT +#endif + + #include #include CORBA_SERVER_HEADER(HELLO_Gen) #include -class HELLO: +class HELLOENGINE_EXPORT HELLO : public POA_HELLO_ORB::HELLO_Gen, public Engines_Component_i { @@ -48,6 +59,7 @@ public: }; extern "C" +HELLOENGINE_EXPORT PortableServer::ObjectId* HELLOEngine_factory( CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, PortableServer::ObjectId* contId,