]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Right EXPORT defines.
authorabd <abd@opencascade.com>
Tue, 2 Dec 2008 13:09:07 +0000 (13:09 +0000)
committerabd <abd@opencascade.com>
Tue, 2 Dec 2008 13:09:07 +0000 (13:09 +0000)
src/STLExport/STLExport.cxx

index ba1e7aa8ebbd756875a78b5e2d2ba9a6c520fd7d..d264d62a48ae8752db307c0217d7707f10e5b54a 100644 (file)
 #include <TCollection_AsciiString.hxx>
 #include <TopoDS_Shape.hxx>
 
-#ifdef WNT
-#include <SALOME_WNT.hxx>
+#ifdef WIN32
+# if defined STLEXPORT_EXPORTS
+#  define STLEXPORT_EXPORT __declspec( dllexport )
+# else
+#  define STLEXPORT_EXPORT __declspec( dllimport )
+# endif
 #else
-#define SALOME_WNT_EXPORT
+# define STLEXPORT_EXPORT
 #endif
 
 //=============================================================================
@@ -45,7 +49,7 @@
 
 extern "C"
 {
-  SALOME_WNT_EXPORT
+  STLEXPORT_EXPORT
   int Export(const TopoDS_Shape& theShape,
              const TCollection_AsciiString& theFileName,
              const TCollection_AsciiString& theFormatName)