diff --git a/include/qpdf/DLL.h b/include/qpdf/DLL.h index 8463248..ca9d57a 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