mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
fix boost.locale crash on macOS-arm64
This commit is contained in:
parent
094486eec1
commit
bc1d99431d
2
Global.h
2
Global.h
@ -191,7 +191,7 @@ static_assert(sizeof(bool) == 1, "Bool needs to be 1 byte in size.");
|
||||
#include <boost/format.hpp>
|
||||
#include <boost/functional/hash.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#ifndef VCMI_ANDROID
|
||||
#ifdef VCMI_WINDOWS
|
||||
#include <boost/locale/generator.hpp>
|
||||
#endif
|
||||
#include <boost/logic/tribool.hpp>
|
||||
|
@ -654,7 +654,7 @@ namespace VCMIDirs
|
||||
static bool initialized = false;
|
||||
if (!initialized)
|
||||
{
|
||||
#ifndef VCMI_ANDROID
|
||||
#ifdef VCMI_WINDOWS
|
||||
std::locale::global(boost::locale::generator().generate("en_US.UTF-8"));
|
||||
#endif
|
||||
boost::filesystem::path::imbue(std::locale());
|
||||
|
Loading…
Reference in New Issue
Block a user