From: abd Date: Tue, 2 Dec 2008 13:07:11 +0000 (+0000) Subject: Right EXPORT defines. X-Git-Tag: V5_1_0rc2~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7f71b7984f18219599ed285fd08f27dd5821e46d;p=modules%2Fgeom.git Right EXPORT defines. --- diff --git a/src/STLExport/STLExport.cxx b/src/STLExport/STLExport.cxx index eded4321d..2773225b7 100644 --- a/src/STLExport/STLExport.cxx +++ b/src/STLExport/STLExport.cxx @@ -29,10 +29,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 //============================================================================= @@ -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)