diff options
Diffstat (limited to 'include/qpdf/DLL.h')
-rw-r--r-- | include/qpdf/DLL.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/qpdf/DLL.h b/include/qpdf/DLL.h index ccd05fce..1e5d8a1a 100644 --- a/include/qpdf/DLL.h +++ b/include/qpdf/DLL.h @@ -25,8 +25,13 @@ #if defined(_WIN32) && defined(DLL_EXPORT) # define QPDF_DLL __declspec(dllexport) +# define QPDF_DLL_EXCEPTION +#elif __GNUC__ >= 4 +# define QPDF_DLL __attribute__ ((visibility ("default"))) +# define QPDF_DLL_EXCEPTION __attribute__ ((visibility ("default"))) #else # define QPDF_DLL +# define QPDF_DLL_EXCEPTION #endif #endif /* QPDF_DLL_HH */ |