From: rnv Date: Wed, 21 Mar 2012 09:12:31 +0000 (+0000) Subject: Win32 compilation. X-Git-Tag: V6_main_FINAL~770 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=098ba6ada3bb0aea5ed760c5fcc26b42f434c9c7;p=tools%2Fmedcoupling.git Win32 compilation. --- diff --git a/src/RENUMBER/RENUMBERDefines.hxx b/src/RENUMBER/RENUMBERDefines.hxx new file mode 100755 index 000000000..b5e7e89df --- /dev/null +++ b/src/RENUMBER/RENUMBERDefines.hxx @@ -0,0 +1,34 @@ +// Copyright (C) 2007-2011 CEA/DEN, EDF R&D +// +// 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. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// + +#ifndef __RENUMBERDEFINES_HXX__ +#define __RENUMBERDEFINES_HXX__ + +//export symbols +#ifdef WIN32 +# if defined RENUMBER_EXPORTS || defined renumber_EXPORTS +# define RENUMBER_EXPORT __declspec(dllexport) +# else +# define RENUMBER_EXPORT __declspec(dllimport) +# endif +#else +# define RENUMBER_EXPORT +#endif + +#endif // __RENUMBERDEFINES_HXX__ diff --git a/src/RENUMBER/RENUMBER_BOOSTRenumbering.hxx b/src/RENUMBER/RENUMBER_BOOSTRenumbering.hxx index 1181231ef..fc3753f35 100644 --- a/src/RENUMBER/RENUMBER_BOOSTRenumbering.hxx +++ b/src/RENUMBER/RENUMBER_BOOSTRenumbering.hxx @@ -20,9 +20,10 @@ #ifndef BOOSTRENUMBERING_HXX_ #define BOOSTRENUMBERING_HXX_ +#include "RENUMBERDefines.hxx" #include "RENUMBER_Renumbering.hxx" -class BOOSTRenumbering:public Renumbering +class RENUMBER_EXPORT BOOSTRenumbering:public Renumbering { public: virtual void renumber(const int* graph,const int* index_graph,int nb_cell,std::vector& iperm,std::vector& perm); diff --git a/src/RENUMBER/RENUMBER_METISRenumbering.hxx b/src/RENUMBER/RENUMBER_METISRenumbering.hxx index 8a6eb00d1..20d7f3474 100644 --- a/src/RENUMBER/RENUMBER_METISRenumbering.hxx +++ b/src/RENUMBER/RENUMBER_METISRenumbering.hxx @@ -20,9 +20,10 @@ #ifndef METISRENUMBERING_HXX_ #define METISRENUMBERING_HXX_ +#include "RENUMBERDefines.hxx" #include "RENUMBER_Renumbering.hxx" -class METISRenumbering:public Renumbering +class RENUMBER_EXPORT METISRenumbering:public Renumbering { public: virtual void renumber(const int* graph,const int* index_graph,int nb_cell,std::vector& iperm,std::vector& perm); diff --git a/src/RENUMBER/RENUMBER_Renumbering.hxx b/src/RENUMBER/RENUMBER_Renumbering.hxx index 9396d8158..76f8604b1 100644 --- a/src/RENUMBER/RENUMBER_Renumbering.hxx +++ b/src/RENUMBER/RENUMBER_Renumbering.hxx @@ -19,9 +19,10 @@ #ifndef RENUMBERING_HXX_ #define RENUMBERING_HXX_ +#include "RENUMBERDefines.hxx" #include -class Renumbering +class RENUMBER_EXPORT Renumbering { public: virtual void renumber(const int* graphe,const int* index_graphe,int nb_cell,std::vector& iperm,std::vector& perm)=0; diff --git a/src/RENUMBER/RenumberingFactory.hxx b/src/RENUMBER/RenumberingFactory.hxx index 91a4b9837..e998c5f60 100644 --- a/src/RENUMBER/RenumberingFactory.hxx +++ b/src/RENUMBER/RenumberingFactory.hxx @@ -21,11 +21,12 @@ #define RENUMBERINGFACTORY_HXX_ #include +#include "RENUMBERDefines.hxx" #include "RENUMBER_Renumbering.hxx" namespace MED_RENUMBER { - Renumbering* RenumberingFactory(const std::string& s); + RENUMBER_EXPORT Renumbering* RenumberingFactory(const std::string& s); } #endif /*RENUMBERINGFACTORY_HXX_*/