From 1d264c17849915d08f2d3ba6857ef259814a64c2 Mon Sep 17 00:00:00 2001 From: abd Date: Tue, 2 Dec 2008 13:09:07 +0000 Subject: [PATCH] Right EXPORT defines. --- src/STLExport/STLExport.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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) -- 2.39.2