]> SALOME platform Git repositories - samples/component.git/blobdiff - src/DivComponent/DivComponent.hxx
Salome HOME
Porting SALOME COMPONENT module to win32 platform.
[samples/component.git] / src / DivComponent / DivComponent.hxx
index a6826ee22e354aea0aa244a47f3e9ac970e234e0..0a7026bd566496df9c1c178a598192c55818bb4b 100644 (file)
 #ifndef _DIVCOMPONENTENGINE_HXX_
 #define _DIVCOMPONENTENGINE_HXX_
 
+#ifdef WIN32
+# if defined DIVCOMPONENTENGINE_EXPORTS || defined DivComponentEngine_EXPORTS
+#  define DIVCOMPONENTENGINE_EXPORT __declspec( dllexport )
+# else
+#  define DIVCOMPONENTENGINE_EXPORT __declspec( dllimport )
+# endif
+#else
+# define DIVCOMPONENTENGINE_EXPORT
+#endif
+
 //#include <iostream.h>
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(DivComponent)
 #include CORBA_SERVER_HEADER(SALOME_Component)
 #include "SALOME_Component_i.hxx"
 
-class DivComponentEngine :  public POA_SuperVisionTest::DivComponent ,
-                            public Engines_Component_i {
+class DIVCOMPONENTENGINE_EXPORT DivComponentEngine :  public POA_SuperVisionTest::DivComponent ,
+                                                      public Engines_Component_i {
 public:
   DivComponentEngine() ;
   DivComponentEngine( CORBA::ORB_ptr orb,
@@ -58,6 +68,7 @@ private:
 };
 
 extern "C"
+  DIVCOMPONENTENGINE_EXPORT
   PortableServer::ObjectId * DivComponentEngine_factory
                                    ( CORBA::ORB_ptr orb ,
                                      PortableServer::POA_ptr poa ,