Commit 6b114684c2414d224de4bc49c4849ab641491bf4
1 parent
064a90da
DLL.h: remove distinction between QPDF_DLL_CLASS and QPDF_DLL for mingw
Showing
1 changed file
with
5 additions
and
3 deletions
include/qpdf/DLL.h
| @@ -31,12 +31,14 @@ | @@ -31,12 +31,14 @@ | ||
| 31 | 31 | ||
| 32 | #if (defined _WIN32 || defined __CYGWIN__) && defined(DLL_EXPORT) | 32 | #if (defined _WIN32 || defined __CYGWIN__) && defined(DLL_EXPORT) |
| 33 | # define QPDF_DLL __declspec(dllexport) | 33 | # define QPDF_DLL __declspec(dllexport) |
| 34 | -# define QPDF_DLL_CLASS | ||
| 35 | -#elif __GNUC__ >= 4 | 34 | +#elif defined __GNUC__ |
| 36 | # define QPDF_DLL __attribute__ ((visibility ("default"))) | 35 | # define QPDF_DLL __attribute__ ((visibility ("default"))) |
| 37 | -# define QPDF_DLL_CLASS __attribute__ ((visibility ("default"))) | ||
| 38 | #else | 36 | #else |
| 39 | # define QPDF_DLL | 37 | # define QPDF_DLL |
| 38 | +#endif | ||
| 39 | +#ifdef __GNUC__ | ||
| 40 | +# define QPDF_DLL_CLASS QPDF_DLL | ||
| 41 | +#else | ||
| 40 | # define QPDF_DLL_CLASS | 42 | # define QPDF_DLL_CLASS |
| 41 | #endif | 43 | #endif |
| 42 | 44 |