From 6b114684c2414d224de4bc49c4849ab641491bf4 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 8 Mar 2022 08:05:38 -0500 Subject: [PATCH] DLL.h: remove distinction between QPDF_DLL_CLASS and QPDF_DLL for mingw --- include/qpdf/DLL.h | 8 +++++--- 1 file 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