diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-04 14:01:32 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-04 14:05:39 +0200 |
commit | 97fc98901cc2dcfa3e1903374cb9040e93fd142f (patch) | |
tree | 79cd5a0e8bfe865ec140b62ec5cb929729922d53 | |
parent | 33caed4f1761bf5c1df1658c466f65d0f44d1131 (diff) | |
download | qpdf-97fc98901cc2dcfa3e1903374cb9040e93fd142f.tar.zst |
Protect gnutls headers from clang-format rearranging them
-rw-r--r-- | libqpdf/qpdf/QPDFCrypto_gnutls.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libqpdf/qpdf/QPDFCrypto_gnutls.hh b/libqpdf/qpdf/QPDFCrypto_gnutls.hh index f17c4474..18945cb8 100644 --- a/libqpdf/qpdf/QPDFCrypto_gnutls.hh +++ b/libqpdf/qpdf/QPDFCrypto_gnutls.hh @@ -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 |