From efe73050c7faa4f7b19c55bec7dc753d38668d15 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Thu, 22 Aug 2013 19:31:15 +0000 Subject: QPID-5079: Get library import/export declarations working for linux - Only qpidmessaging and qpidtypes libraries are affected git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1516549 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/include/qpid/ImportExport.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'qpid/cpp/include') diff --git a/qpid/cpp/include/qpid/ImportExport.h b/qpid/cpp/include/qpid/ImportExport.h index e62399faf7..eecc9503bc 100644 --- a/qpid/cpp/include/qpid/ImportExport.h +++ b/qpid/cpp/include/qpid/ImportExport.h @@ -60,12 +60,16 @@ // // Non-Windows (Linux, etc.) definitions: // +#if __GNUC__ >= 4 +# define QPID_EXPORT __attribute ((visibility ("default"))) +#else # define QPID_EXPORT +#endif # define QPID_IMPORT -# define QPID_CLASS_EXPORT -# define QPID_CLASS_IMPORT -# define QPID_INLINE_EXPORT -# define QPID_INLINE_IMPORT +# define QPID_CLASS_EXPORT QPID_EXPORT +# define QPID_CLASS_IMPORT QPID_IMPORT +# define QPID_INLINE_EXPORT QPID_EXPORT +# define QPID_INLINE_IMPORT QPID_IMPORT #endif #endif /*!QPID_IMPORTEXPORT_H*/ -- cgit v1.2.1