[PATCH] Fix for sw_filter_test crash due to ambiguous FieldEntry destructor

Stephan Bergmann sbergman at redhat.com
Thu Jul 26 06:48:28 PDT 2012


On 07/25/2012 04:12 PM, Michael Stahl wrote:
> it appears that at least GCC supports a weak attribute; perhaps somebody
> could try out what happens with clang when it is added to the definition
> of SAL_DLLPUBLIC_TEMPLATE.
>
> diff --git a/sal/inc/sal/types.h b/sal/inc/sal/types.h
> index 3db8cf4..28a908d 100644
> --- a/sal/inc/sal/types.h
> +++ b/sal/inc/sal/types.h
> @@ -273,7 +273,7 @@ typedef void *                   sal_Handle;
>   #     define SAL_DLLPUBLIC_EXPORT  __attribute__ ((visibility("default")))
>   #     define SAL_DLLPUBLIC_IMPORT  __attribute__ ((visibility("default")))
>   #     define SAL_DLLPRIVATE        __attribute__ ((visibility("hidden")))
> -#     define SAL_DLLPUBLIC_TEMPLATE __attribute__ ((visibility("default")))
> +#     define SAL_DLLPUBLIC_TEMPLATE __attribute__
> ((visibility("default"),weak))
>   #   else
>   #     define SAL_DLLPUBLIC_EXPORT
>   #     define SAL_DLLPUBLIC_IMPORT

no, doesn't help

Stephan



More information about the LibreOffice mailing list