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 /qt4/src | |
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 'qt4/src')
-rw-r--r-- | qt4/src/poppler-export.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt4/src/poppler-export.h b/qt4/src/poppler-export.h index 0e5d0a02..2e2f6ff8 100644 --- a/qt4/src/poppler-export.h +++ b/qt4/src/poppler-export.h @@ -5,6 +5,9 @@ #if defined(_WIN32) # define _POPPLER_QT4_LIB_EXPORT __declspec(dllexport) # define _POPPLER_QT4_LIB_IMPORT __declspec(dllimport) +#elif defined(__GNUC__) +# define _POPPLER_QT4_LIB_EXPORT __attribute__((visibility("default"))) +# define _POPPLER_QT4_LIB_IMPORT #else # define _POPPLER_QT4_LIB_EXPORT # define _POPPLER_QT4_LIB_IMPORT |