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

index eded4321d4f93f85cdc5cedbe998c121d04555ac..2773225b70b4d059927ee01527a1d9ab7f868d45 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
 
 //=============================================================================
@@ -43,7 +47,7 @@
 
 extern "C"
 {
-  SALOME_WNT_EXPORT
+  STLEXPORT_EXPORT
   int Export(const TopoDS_Shape& theShape,
              const TCollection_AsciiString& theFileName,
              const TCollection_AsciiString& theFormatName)