Codefix: Make sure safeguards.h is the last included non-table header. (#14687)

This commit is contained in:
Peter Nelson
2025-10-11 10:22:50 +01:00
committed by dP
parent cc0c274296
commit 09858583be
9 changed files with 42 additions and 28 deletions

View File

@@ -57,6 +57,18 @@
# include <emscripten.h>
#endif
#ifdef WITH_LZO
#include <lzo/lzo1x.h>
#endif
#if defined(WITH_ZLIB)
#include <zlib.h>
#endif /* WITH_ZLIB */
#if defined(WITH_LIBLZMA)
#include <lzma.h>
#endif /* WITH_LIBLZMA */
#include "table/strings.h"
#include "../safeguards.h"
@@ -2418,7 +2430,6 @@ struct FileWriter : SaveFilter {
*******************************************/
#ifdef WITH_LZO
#include <lzo/lzo1x.h>
/** Buffer size for the LZO compressor */
static const uint LZO_BUFFER_SIZE = 8192;
@@ -2547,7 +2558,6 @@ struct NoCompSaveFilter : SaveFilter {
********************************************/
#if defined(WITH_ZLIB)
#include <zlib.h>
/** Filter using Zlib compression. */
struct ZlibLoadFilter : LoadFilter {
@@ -2666,7 +2676,6 @@ struct ZlibSaveFilter : SaveFilter {
********************************************/
#if defined(WITH_LIBLZMA)
#include <lzma.h>
/**
* Have a copy of an initialised LZMA stream. We need this as it's