diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2018-09-04 17:19:44 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2018-09-14 16:42:42 +0300 |
commit | ea3407d1ec6a2800353896fac481023dbc3f4854 (patch) | |
tree | 7e5b98a4bc3aefaf862565f6b8c514fbf2e7c47d /map | |
parent | c488f20bbaf9ea61b4321334b6e7d4443fbce05e (diff) |
Explicit check that only little endian architectures are supported.
Diffstat (limited to 'map')
-rw-r--r-- | map/framework.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/map/framework.cpp b/map/framework.cpp index f91091f029..7e2bf8345f 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -72,6 +72,7 @@ #include "platform/settings.hpp" #include "platform/socket.hpp" +#include "coding/endianness.hpp" #include "coding/file_name_utils.hpp" #include "coding/multilang_utf8_string.hpp" #include "coding/transliteration.hpp" @@ -391,6 +392,10 @@ Framework::Framework(FrameworkParams const & params) , m_purchase(std::make_unique<Purchase>()) , m_tipsApi(static_cast<TipsApi::Delegate &>(*this)) { + CHECK(IsLittleEndian(), ("Only little endian architecture is supported.")); + + m_startBackgroundTime = my::Timer::LocalTime(); + // Editor should be initialized from the main thread to set its ThreadChecker. // However, search calls editor upon initialization thus setting the lazy editor's ThreadChecker // to a wrong thread. So editor should be initialiazed before serach. |