Commit 97fc98901cc2dcfa3e1903374cb9040e93fd142f
1 parent
33caed4f
Protect gnutls headers from clang-format rearranging them
Showing
1 changed file
with
4 additions
and
0 deletions
libqpdf/qpdf/QPDFCrypto_gnutls.hh
| ... | ... | @@ -4,7 +4,11 @@ |
| 4 | 4 | #include <qpdf/DLL.h> |
| 5 | 5 | #include <qpdf/QPDFCryptoImpl.hh> |
| 6 | 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 | 10 | #include <gnutls/gnutls.h> |
| 11 | +// This comment prevents clang-format from putting crypto.h before gnutls.h | |
| 8 | 12 | #include <gnutls/crypto.h> |
| 9 | 13 | |
| 10 | 14 | class QPDFCrypto_gnutls: public QPDFCryptoImpl | ... | ... |