Codechange: Use std::endian instead of TTD_ENDIAN where trivial. (#12778)

This commit is contained in:
Peter Nelson
2024-06-15 10:24:17 +01:00
committed by GitHub
parent f9f07e9001
commit b68172c225
4 changed files with 19 additions and 25 deletions

View File

@@ -219,13 +219,8 @@ void SurveyOpenTTD(nlohmann::json &survey)
32
#endif
;
survey["endian"] =
#if (TTD_ENDIAN == TTD_LITTLE_ENDIAN)
"little"
#else
"big"
#endif
;
if constexpr (std::endian::native == std::endian::little) survey["endian"] = "little";
if constexpr (std::endian::native == std::endian::big) survey["endian"] = "big";
survey["dedicated_build"] =
#ifdef DEDICATED
"yes"