2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 10:58:58 +00:00

DLL.h: remove distinction between QPDF_DLL_CLASS and QPDF_DLL for mingw

This commit is contained in:
Jay Berkenbilt 2022-03-08 08:05:38 -05:00
parent 064a90da2d
commit 6b114684c2

View File

@ -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