Codefix: Make sure safeguards.h is the last included non-table header. (#14687)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user