1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-17 09:22:42 +01:00

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 GitHub
parent f935e34d90
commit 8e055156e3
9 changed files with 42 additions and 28 deletions

View File

@@ -46,6 +46,10 @@
#include "company_cmd.h"
#include "misc_cmd.h"
#if defined(WITH_ZLIB)
#include "network/network_content.h"
#endif /* WITH_ZLIB */
#include "table/strings.h"
#include "safeguards.h"
@@ -2176,7 +2180,6 @@ static bool ConNetworkAuthorizedKey(std::span<std::string_view> argv)
/* Content downloading only is available with ZLIB */
#if defined(WITH_ZLIB)
#include "network/network_content.h"
/** Resolve a string to a content type. */
static ContentType StringToContentType(std::string_view str)