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_