Commit 97fc98901cc2dcfa3e1903374cb9040e93fd142f

Authored by Jay Berkenbilt
1 parent 33caed4f

Protect gnutls headers from clang-format rearranging them

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