Salome HOME
Revert "Synchronize adm files"
[samples/atomsolv.git] / src / ATOMSOLV / ATOMSOLV.hxx
index ec5f83582dfdc6bdb8ee04a2305166d0372afdc5..ff7eb7b88728c314c10b6ba615f7ec84f60300f5 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // 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.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 
 #include <map>
 
-class ATOMSOLV:
+#if defined WIN32
+#  if defined ATOMSOLV_EXPORTS || defined ATOMSOLVEngine_EXPORTS
+#    define ATOMSOLV_EXPORT __declspec( dllexport )
+#  else
+#    define ATOMSOLV_EXPORT __declspec( dllimport )
+#  endif
+#else
+#  define ATOMSOLV_EXPORT
+#endif
+
+
+class ATOMSOLV_EXPORT ATOMSOLV:
   public POA_ATOMSOLV_ORB::ATOMSOLV_Gen,
   public Engines_Component_i 
 {
@@ -50,6 +61,7 @@ private:
 };
 
 extern "C"
+ ATOMSOLV_EXPORT
 PortableServer::ObjectId * ATOMSOLVEngine_factory(CORBA::ORB_ptr orb,
                                                  PortableServer::POA_ptr poa,
                                                  PortableServer::ObjectId * contId,