From c662bf350f5a8f43daa38f0fbee11464604d1285 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 5 Jan 2015 17:18:25 +0100 Subject: Mark function declarations as CPPU_DLLPUBLIC, not only definitions "Importing into an Application Using __declspec(dllimport)": "Using __declspec(dllimport) is optional on function declarations, but the compiler produces more efficient code if you use this keyword." Change-Id: I149306049987b2406622d7a0dc5dde92d283a5b3 --- include/com/sun/star/uno/Any.hxx | 3 ++- include/com/sun/star/uno/Reference.hxx | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'include/com') diff --git a/include/com/sun/star/uno/Any.hxx b/include/com/sun/star/uno/Any.hxx index 04d1274719f1..9e9e7dcd2455 100644 --- a/include/com/sun/star/uno/Any.hxx +++ b/include/com/sun/star/uno/Any.hxx @@ -32,6 +32,7 @@ #include #include #include +#include #include namespace com @@ -576,7 +577,7 @@ inline bool SAL_CALL operator != ( const Any & rAny, const C & value ) return (! operator == ( rAny, value )); } -extern "C" rtl_uString * SAL_CALL cppu_Any_extraction_failure_msg( +extern "C" CPPU_DLLPUBLIC rtl_uString * SAL_CALL cppu_Any_extraction_failure_msg( uno_Any const * pAny, typelib_TypeDescriptionReference * pType ) SAL_THROW_EXTERN_C(); diff --git a/include/com/sun/star/uno/Reference.hxx b/include/com/sun/star/uno/Reference.hxx index db489e593dd8..456c35fb69ea 100644 --- a/include/com/sun/star/uno/Reference.hxx +++ b/include/com/sun/star/uno/Reference.hxx @@ -23,6 +23,7 @@ #include #include #include +#include namespace com { @@ -56,10 +57,10 @@ inline XInterface * Reference< interface_type >::iquery( { return BaseReference::iquery(pInterface, interface_type::static_type()); } -extern "C" rtl_uString * SAL_CALL cppu_unsatisfied_iquery_msg( +extern "C" CPPU_DLLPUBLIC rtl_uString * SAL_CALL cppu_unsatisfied_iquery_msg( typelib_TypeDescriptionReference * pType ) SAL_THROW_EXTERN_C(); -extern "C" rtl_uString * SAL_CALL cppu_unsatisfied_iset_msg( +extern "C" CPPU_DLLPUBLIC rtl_uString * SAL_CALL cppu_unsatisfied_iset_msg( typelib_TypeDescriptionReference * pType ) SAL_THROW_EXTERN_C(); -- cgit