2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 19:08:59 +00:00

Protect gnutls headers from clang-format rearranging them

This commit is contained in:
Jay Berkenbilt 2022-04-04 08:01:32 -04:00
parent 33caed4f17
commit 97fc98901c

View File

@ -4,7 +4,11 @@
#include <qpdf/DLL.h>
#include <qpdf/QPDFCryptoImpl.hh>
#include <memory>
// gnutls headers must be last to prevent them from interfering with
// other headers. gnutls.h has to be included first.
#include <gnutls/gnutls.h>
// This comment prevents clang-format from putting crypto.h before gnutls.h
#include <gnutls/crypto.h>
class QPDFCrypto_gnutls: public QPDFCryptoImpl