diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/DLL.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/qpdf/DLL.h b/include/qpdf/DLL.h index 84632488..ca9d57a7 100644 --- a/include/qpdf/DLL.h +++ b/include/qpdf/DLL.h @@ -31,12 +31,14 @@ #if (defined _WIN32 || defined __CYGWIN__) && defined(DLL_EXPORT) # define QPDF_DLL __declspec(dllexport) -# define QPDF_DLL_CLASS -#elif __GNUC__ >= 4 +#elif defined __GNUC__ # define QPDF_DLL __attribute__ ((visibility ("default"))) -# define QPDF_DLL_CLASS __attribute__ ((visibility ("default"))) #else # define QPDF_DLL +#endif +#ifdef __GNUC__ +# define QPDF_DLL_CLASS QPDF_DLL +#else # define QPDF_DLL_CLASS #endif |