Salome HOME
Porting SIERPINSKY module to WIN32 platform.
[samples/sierpinsky.git] / src / Sierpinsky / SIERPINSKY_Gen_i.hxx
index 8d77fe0df0693f8e70e83043672b700774a27496..895bfe2410b93f65cd82ca8e58712178661e23bb 100644 (file)
 
 #include <list>
 
+#ifdef WIN32
+ #if defined SIERPINSKYENGINE_EXPORTS || defined SIERPINSKYEngine_EXPORTS
+  #define SIERPINSKYENGINE_EXPORT __declspec( dllexport )
+ #else
+  #define SIERPINSKYENGINE_EXPORT __declspec( dllimport )
+ #endif
+#else
+ #define SIERPINSKYENGINE_EXPORT
+#endif
+
 struct MyPoint
 {
   double myX;
@@ -41,7 +51,7 @@ struct MyPoint
   MyPoint( const double x = 0., const double y = 0. ) : myX( x ), myY( y ) {}
 };
 
-class SIERPINSKY_Gen_i: public virtual POA_SIERPINSKY_ORB::SIERPINSKY,
+class SIERPINSKYENGINE_EXPORT SIERPINSKY_Gen_i: public virtual POA_SIERPINSKY_ORB::SIERPINSKY,
                         public virtual Engines_Component_i
 {
 public: