From 5cf1f42354ba90aa07d1110e406ecf72abab679c Mon Sep 17 00:00:00 2001 From: env Date: Wed, 10 Aug 2005 10:21:27 +0000 Subject: [PATCH] ENV: Windows porting. --- src/Utils/Utils_ExceptHandlers.hxx | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) 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 -- 2.39.2