diff options
author | Pino Toscano <pino@kde.org> | 2014-01-26 12:43:13 +0100 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2014-01-26 12:43:13 +0100 |
commit | 03674a141a96806e5e1a134dc3dec2ee61b68713 (patch) | |
tree | 7bea3b9f27ce2c7df58623161025783dbe47a17e /qt5 | |
parent | 52b46d05219cf9898ee4adae7c8c2702adb1ba23 (diff) |
qt4/qt5: add GCC visibility export attributes
this does no actual changes to the exported symbols, but can help in
hiding symbols if the right GCC flags for symbols visibility are
specified
Diffstat (limited to 'qt5')
-rw-r--r-- | qt5/src/poppler-export.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt5/src/poppler-export.h b/qt5/src/poppler-export.h index 4df6636c..24a4b177 100644 --- a/qt5/src/poppler-export.h +++ b/qt5/src/poppler-export.h @@ -5,6 +5,9 @@ #if defined(_WIN32) # define _POPPLER_QT5_LIB_EXPORT __declspec(dllexport) # define _POPPLER_QT5_LIB_IMPORT __declspec(dllimport) +#elif defined(__GNUC__) +# define _POPPLER_QT5_LIB_EXPORT __attribute__((visibility("default"))) +# define _POPPLER_QT5_LIB_IMPORT #else # define _POPPLER_QT5_LIB_EXPORT # define _POPPLER_QT5_LIB_IMPORT |