From 8550c4a50fec41df6f15551136ea2189eeae744a Mon Sep 17 00:00:00 2001 From: Dmytro Ivanov Date: Fri, 27 Sep 2024 16:58:24 +0200 Subject: Fixing compilation errors with fmt v11 (#172) --- src/zenserver/config.cpp | 1 + xmake.lua | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/zenserver/config.cpp b/src/zenserver/config.cpp index 4fc928d2c..530f12ed8 100644 --- a/src/zenserver/config.cpp +++ b/src/zenserver/config.cpp @@ -18,6 +18,7 @@ ZEN_THIRD_PARTY_INCLUDES_START #include +#include #include #include #include diff --git a/xmake.lua b/xmake.lua index a82ee337e..4d04506c6 100644 --- a/xmake.lua +++ b/xmake.lua @@ -66,6 +66,10 @@ else add_defines("ZEN_WITH_TESTS=0") end +-- fmt 11+ requires utf-8 when using unicode +set_encodings("utf-8") +set_encodings("source:utf-8", "target:utf-8") + if is_os("windows") then add_defines( "_CRT_SECURE_NO_WARNINGS", -- cgit v1.2.3