]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Windows compatibility.
authorrnv <rnv@opencascade.com>
Fri, 31 Mar 2017 07:11:44 +0000 (10:11 +0300)
committerrnv <rnv@opencascade.com>
Fri, 31 Mar 2017 07:11:44 +0000 (10:11 +0300)
src/Tools/padder/meshjob/impl/SPADDERPluginTester_i.cxx
src/Tools/padder/meshjob/impl/SPADDERPluginTester_i.hxx

index e1cd4e7d25836c6e36aa76d0341f691b625c0830..10b5b94c86575930175ac602b2969033f1aaae46 100644 (file)
@@ -146,11 +146,12 @@ bool SPADDERPluginTester_i::testsmesh(CORBA::Long studyId)
 //
 extern "C"
 {
-  PortableServer::ObjectId * SPADDERPluginTesterEngine_factory( CORBA::ORB_ptr orb,
-                                                                PortableServer::POA_ptr poa,
-                                                                PortableServer::ObjectId * contId,
-                                                                const char *instanceName,
-                                                                const char *interfaceName)
+  SPADDERPLUGINTESTERENGINE_EXPORT PortableServer::ObjectId * 
+  SPADDERPluginTesterEngine_factory( CORBA::ORB_ptr orb,
+                                     PortableServer::POA_ptr poa,
+                                     PortableServer::ObjectId * contId,
+                                     const char *instanceName,
+                                     const char *interfaceName)
   {
     MESSAGE("PortableServer::ObjectId * SPADDERPluginTesterEngine_factory()");
     SPADDERPluginTester_i * myEngine = new SPADDERPluginTester_i(orb, poa, contId, instanceName, interfaceName);
index 36c7637fcf4c171de7462f708a6c36759c8d1469..9a2193d556c2669274b0a55df51daa6a1a9aed73 100644 (file)
 #ifndef _SPADDER_PLUGINTESTER_HXX_
 #define _SPADDER_PLUGINTESTER_HXX_
 
+#ifdef WIN32
+ #if defined SPADDERPLUGINTESTERENGINE_EXPORTS || defined SPADDERPluginTesterEngine_EXPORTS
+  #define SPADDERPLUGINTESTERENGINE_EXPORT __declspec( dllexport )
+ #else
+  #define SPADDERPLUGINTESTERENGINE_EXPORT __declspec( dllimport )
+ #endif
+#else
+ #define SPADDERPLUGINTESTERENGINE_EXPORT
+#endif
+
 // include the stubs generating from SPADDERPluginTest.idl
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SPADDERPluginTest)
 #include <SALOME_Component.hh>
 #include "SALOME_Component_i.hxx"
 
-class SPADDERPluginTester_i:
+class SPADDERPLUGINTESTERENGINE_EXPORT SPADDERPluginTester_i:
   public virtual POA_SPADDERPluginTest::SPADDERPluginTester,
   public Engines_Component_i
 {