From ef0861be5079e2e47122e8369603984b37e7a22b Mon Sep 17 00:00:00 2001 From: Pascal Junck Date: Fri, 22 Oct 2004 09:58:53 +0000 Subject: [PATCH] INTEGRATION: CWS tune06 (1.17.22); FILE MERGED 2004/10/13 12:09:05 sb 1.17.22.1: #i35054# GCC 3.4 symbol visibility: UNO exceptions need explicit default symbol visibility. --- cppu/inc/cppu/macros.hxx | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/cppu/inc/cppu/macros.hxx b/cppu/inc/cppu/macros.hxx index 1f00d846380d..fe2695dd4274 100644 --- a/cppu/inc/cppu/macros.hxx +++ b/cppu/inc/cppu/macros.hxx @@ -2,9 +2,9 @@ * * $RCSfile: macros.hxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: obo $ $Date: 2004-06-04 03:18:31 $ + * last change: $Author: pjunck $ $Date: 2004-10-22 10:58:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -88,5 +88,21 @@ #define CPPU_GCC3_ALIGN( base_struct ) #endif +/** + Exporting the symbols necessary for exception handling on GCC. + + These macros are used in the headers generated by cppumaker for UNO exception + types, to ensure that exception handling does not fail on GCC. + + @internal +*/ +#if defined __GNUC__ +#define CPPU_GCC_DLLPUBLIC_EXPORT SAL_DLLPUBLIC_EXPORT +#define CPPU_GCC_DLLPRIVATE SAL_DLLPRIVATE +#else +#define CPPU_GCC_DLLPUBLIC_EXPORT +#define CPPU_GCC_DLLPRIVATE +#endif + #endif // _CPPU_MACROS_HXX_