From: env Date: Wed, 10 Aug 2005 10:21:27 +0000 (+0000) Subject: ENV: Windows porting. X-Git-Tag: T_3_0_2a1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5cf1f42354ba90aa07d1110e406ecf72abab679c;p=modules%2Fkernel.git ENV: Windows porting. --- diff --git a/src/Utils/Utils_ExceptHandlers.hxx b/src/Utils/Utils_ExceptHandlers.hxx index 572243e26..61b588055 100644 --- a/src/Utils/Utils_ExceptHandlers.hxx +++ b/src/Utils/Utils_ExceptHandlers.hxx @@ -31,9 +31,23 @@ #include +#if defined UTILS_EXPORTS +#if defined WIN32 +#define UTILS_EXPORT __declspec( dllexport ) +#else +#define UTILS_EXPORT +#endif +#else +#if defined WNT +#define UTILS_EXPORT __declspec( dllimport ) +#else +#define UTILS_EXPORT +#endif +#endif + typedef void (*PVF)(); -class Unexpect { //save / retrieve unexpected exceptions treatment +class UTILS_EXPORT Unexpect { //save / retrieve unexpected exceptions treatment PVF old; public : #ifndef WNT @@ -47,7 +61,7 @@ class Unexpect { //save / retrieve unexpected exceptions treatment #endif }; -class Terminate {//save / retrieve terminate function +class UTILS_EXPORT Terminate {//save / retrieve terminate function PVF old; public : @@ -81,7 +95,7 @@ inline void FuncName () {\ //Definitions : -extern void SalomeException(); -extern void SALOME_SalomeException(); +UTILS_EXPORT extern void SalomeException(); +UTILS_EXPORT extern void SALOME_SalomeException(); #endif