Salome HOME
porting on linux
[modules/hydro.git] / src / HYDROData / HYDROData.h
index 220feb939a281d15e92aca1e32180756cfb255d6..2616c84e1db7f88ab38311b0ce3085fa20b60df3 100644 (file)
@@ -1,18 +1,40 @@
+// Copyright (C) 2014-2015  EDF-R&D
+// 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, 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
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
 #ifndef HYDRODATA_H
 #define HYDRODATA_H
 
-#if defined HYDRODATA_EXPORTS
-#if defined WIN32
-#define HYDRODATA_EXPORT              __declspec( dllexport )
-#else
-#define HYDRODATA_EXPORT
-#endif
+#ifdef HYDRODATA_STATIC
+  #define HYDRODATA_EXPORT
 #else
-#if defined WIN32
-#define HYDRODATA_EXPORT              __declspec( dllimport )
-#else
-#define HYDRODATA_EXPORT
-#endif
+  #ifdef HYDRODATA_EXPORTS
+    #ifdef WIN32
+      #define HYDRODATA_EXPORT              __declspec( dllexport )
+    #else
+      #define HYDRODATA_EXPORT
+    #endif
+  #else
+    #ifdef WIN32
+      #define HYDRODATA_EXPORT              __declspec( dllimport )
+    #else
+      #define HYDRODATA_EXPORT
+    #endif
+  #endif
 #endif
 
 #endif