diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-03-08 14:05:38 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-03-08 18:05:06 +0100 |
commit | 6b114684c2414d224de4bc49c4849ab641491bf4 (patch) | |
tree | 8c3ddba02e57dae683b24f81b0f344c0027cb450 | |
parent | 064a90da2d256ef07c359273c234eb56c4f72f0d (diff) | |
download | qpdf-6b114684c2414d224de4bc49c4849ab641491bf4.tar.zst |
DLL.h: remove distinction between QPDF_DLL_CLASS and QPDF_DLL for mingw
-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 |