1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-18 18:02:37 +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

@@ -28,7 +28,10 @@
#ifdef WITH_ICU_I18N
/* Required by StrNaturalCompare. */
# include <unicode/brkiter.h>
# include <unicode/stsearch.h>
# include <unicode/ustring.h>
# include <unicode/utext.h>
# include "language.h"
# include "gfx_func.h"
#endif /* WITH_ICU_I18N */
@@ -453,8 +456,6 @@ int StrNaturalCompare(std::string_view s1, std::string_view s2, bool ignore_garb
#ifdef WITH_ICU_I18N
#include <unicode/stsearch.h>
/**
* Search if a string is contained in another string using the current locale.
*
@@ -601,9 +602,6 @@ bool ConvertHexToBytes(std::string_view hex, std::span<uint8_t> bytes)
#elif defined(WITH_ICU_I18N)
#include <unicode/utext.h>
#include <unicode/brkiter.h>
/** String iterator using ICU as a backend. */
class IcuStringIterator : public StringIterator
{