From 098ba6ada3bb0aea5ed760c5fcc26b42f434c9c7 Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 21 Mar 2012 09:12:31 +0000 Subject: [PATCH] Win32 compilation. --- src/RENUMBER/RENUMBERDefines.hxx | 34 ++++++++++++++++++++++ src/RENUMBER/RENUMBER_BOOSTRenumbering.hxx | 3 +- src/RENUMBER/RENUMBER_METISRenumbering.hxx | 3 +- src/RENUMBER/RENUMBER_Renumbering.hxx | 3 +- src/RENUMBER/RenumberingFactory.hxx | 3 +- 5 files changed, 42 insertions(+), 4 deletions(-) create mode 100755 src/RENUMBER/RENUMBERDefines.hxx 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_*/ -- 2.39.2