Issue #22: Clang compilation fix

This commit is contained in:
Jakub Melka
2022-07-31 19:17:43 +02:00
parent e310efb763
commit ae5e2fa9cd
4 changed files with 23 additions and 2 deletions

View File

@ -38,12 +38,21 @@
#endif
#endif
#ifdef PDF4QT_COMPILER_CLANG
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wregister"
#endif
#pragma warning(push)
#pragma warning(disable:5033)
#define CMS_NO_REGISTER_KEYWORD
#include <lcms2.h>
#pragma warning(pop)
#ifdef PDF4QT_COMPILER_CLANG
#pragma clang diagnostic pop
#endif
namespace pdf
{