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 | 0289f6bf47842e5d93877d1c5aab64cb3e481406 (patch) | |
| tree | 80cd23d7069fcdb8e66434655475da285e1e322b /cpp/include/qpid | |
| parent | 56c2a748a6708d75ab039bd58cd6bdca2b6202b8 (diff) | |
| download | qpid-python-0289f6bf47842e5d93877d1c5aab64cb3e481406.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/qpid@1516549 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include/qpid')
| -rw-r--r-- | cpp/include/qpid/ImportExport.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/cpp/include/qpid/ImportExport.h b/cpp/include/qpid/ImportExport.h index e62399faf7..eecc9503bc 100644 --- a/cpp/include/qpid/ImportExport.h +++ b/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*/ |
