diff options
| author | Dmytro Ivanov <[email protected]> | 2024-09-27 16:58:24 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-09-27 16:58:24 +0200 |
| commit | 8550c4a50fec41df6f15551136ea2189eeae744a (patch) | |
| tree | 39a0bb4b7a8a5d22b27dc1356b50337c6e723f9d | |
| parent | work around issues compiling fmt::join call on mac (#170) (diff) | |
| download | zen-8550c4a50fec41df6f15551136ea2189eeae744a.tar.xz zen-8550c4a50fec41df6f15551136ea2189eeae744a.zip | |
Fixing compilation errors with fmt v11 (#172)
| -rw-r--r-- | src/zenserver/config.cpp | 1 | ||||
| -rw-r--r-- | xmake.lua | 4 |
2 files changed, 5 insertions, 0 deletions
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 <fmt/format.h> +#include <fmt/ranges.h> #include <zencore/logging.h> #include <cxxopts.hpp> #include <sol/sol.hpp> @@ -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", |