From: abd Date: Tue, 2 Dec 2008 13:09:07 +0000 (+0000) Subject: Right EXPORT defines. X-Git-Tag: V4_1_4~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1d264c17849915d08f2d3ba6857ef259814a64c2;p=modules%2Fgeom.git Right EXPORT defines. --- diff --git a/src/STLExport/STLExport.cxx b/src/STLExport/STLExport.cxx index ba1e7aa8e..d264d62a4 100644 --- a/src/STLExport/STLExport.cxx +++ b/src/STLExport/STLExport.cxx @@ -31,10 +31,14 @@ #include #include -#ifdef WNT -#include +#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)