aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-04-04 14:01:32 +0200
committerJay Berkenbilt <ejb@ql.org>2022-04-04 14:05:39 +0200
commit97fc98901cc2dcfa3e1903374cb9040e93fd142f (patch)
tree79cd5a0e8bfe865ec140b62ec5cb929729922d53
parent33caed4f1761bf5c1df1658c466f65d0f44d1131 (diff)
downloadqpdf-97fc98901cc2dcfa3e1903374cb9040e93fd142f.tar.zst
Protect gnutls headers from clang-format rearranging them
-rw-r--r--libqpdf/qpdf/QPDFCrypto_gnutls.hh4
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