diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2013-08-22 19:31:15 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2013-08-22 19:31:15 +0000 |
| commit | efe73050c7faa4f7b19c55bec7dc753d38668d15 (patch) | |
| tree | 64dedd93d5a5f918ed36532bfc0c3d9a903ed109 /qpid/cpp/include | |
| parent | a607830490b4b64a25f64c1e8a79662ef7ab95e8 (diff) | |
| download | qpid-python-efe73050c7faa4f7b19c55bec7dc753d38668d15.tar.gz | |
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
Diffstat (limited to 'qpid/cpp/include')
| -rw-r--r-- | qpid/cpp/include/qpid/ImportExport.h | 12 |
1 files changed, 8 insertions, 4 deletions
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*/ |
