From af8514564e20ea2f7cbae0d24615c2446ae03164 Mon Sep 17 00:00:00 2001 From: abd Date: Thu, 29 Jun 2006 13:45:24 +0000 Subject: [PATCH] Exports symbols using in SMESH hypothezis mechanizm --- src/GUI/NETGENPluginGUI.cxx | 1 + src/GUI/NETGENPluginGUI_HypothesisCreator.h | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/GUI/NETGENPluginGUI.cxx b/src/GUI/NETGENPluginGUI.cxx index 47fd3c0..1b89921 100755 --- a/src/GUI/NETGENPluginGUI.cxx +++ b/src/GUI/NETGENPluginGUI.cxx @@ -35,6 +35,7 @@ //============================================================================= extern "C" { + NETGENPLUGIN_GUI_EXPORT SMESHGUI_GenericHypothesisCreator* GetHypothesisCreator( const QString& aHypType ) { SMESHGUI_GenericHypothesisCreator* aCreator = NULL; diff --git a/src/GUI/NETGENPluginGUI_HypothesisCreator.h b/src/GUI/NETGENPluginGUI_HypothesisCreator.h index c86b99f..77c0fcc 100644 --- a/src/GUI/NETGENPluginGUI_HypothesisCreator.h +++ b/src/GUI/NETGENPluginGUI_HypothesisCreator.h @@ -28,6 +28,16 @@ #ifndef NETGENPLUGINGUI_HypothesisCreator_HeaderFile #define NETGENPLUGINGUI_HypothesisCreator_HeaderFile +#ifdef WIN32 + #ifdef NETGENPLUGIN_GUI_EXPORTS + #define NETGENPLUGIN_GUI_EXPORT __declspec( dllexport ) + #else + #define NETGENPLUGIN_GUI_EXPORT __declspec( dllimport ) + #endif +#else + #define NETGENPLUGIN_GUI_EXPORTT +#endif + #include class QtxDblSpinBox; @@ -46,7 +56,7 @@ typedef struct /*! * \brief Class for creation of NETGEN2D and NETGEN3D hypotheses */ -class NETGENPluginGUI_HypothesisCreator : public SMESHGUI_GenericHypothesisCreator +class NETGENPLUGIN_GUI_EXPORT NETGENPluginGUI_HypothesisCreator : public SMESHGUI_GenericHypothesisCreator { Q_OBJECT -- 2.39.2