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 | 31 | |
| 32 | 32 | #if (defined _WIN32 || defined __CYGWIN__) && defined(DLL_EXPORT) |
| 33 | 33 | # define QPDF_DLL __declspec(dllexport) |
| 34 | -# define QPDF_DLL_CLASS | |
| 35 | -#elif __GNUC__ >= 4 | |
| 34 | +#elif defined __GNUC__ | |
| 36 | 35 | # define QPDF_DLL __attribute__ ((visibility ("default"))) |
| 37 | -# define QPDF_DLL_CLASS __attribute__ ((visibility ("default"))) | |
| 38 | 36 | #else |
| 39 | 37 | # define QPDF_DLL |
| 38 | +#endif | |
| 39 | +#ifdef __GNUC__ | |
| 40 | +# define QPDF_DLL_CLASS QPDF_DLL | |
| 41 | +#else | |
| 40 | 42 | # define QPDF_DLL_CLASS |
| 41 | 43 | #endif |
| 42 | 44 | ... | ... |