aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-03-08 14:05:38 +0100
committerJay Berkenbilt <ejb@ql.org>2022-03-08 18:05:06 +0100
commit6b114684c2414d224de4bc49c4849ab641491bf4 (patch)
tree8c3ddba02e57dae683b24f81b0f344c0027cb450
parent064a90da2d256ef07c359273c234eb56c4f72f0d (diff)
downloadqpdf-6b114684c2414d224de4bc49c4849ab641491bf4.tar.zst
DLL.h: remove distinction between QPDF_DLL_CLASS and QPDF_DLL for mingw
-rw-r--r--include/qpdf/DLL.h8
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