diff options
| author | Dan Engelbrecht <[email protected]> | 2022-05-05 10:16:39 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-05-05 10:24:51 +0200 |
| commit | 7b842505d25fcd8f0c52656c608c1a66f45ccf96 (patch) | |
| tree | e46b8b3934a50d64bd8daa6350adabe65e379c01 /zenserver/cache/structuredcachestore.cpp | |
| parent | cleanup and review feedback (diff) | |
| download | zen-7b842505d25fcd8f0c52656c608c1a66f45ccf96.tar.xz zen-7b842505d25fcd8f0c52656c608c1a66f45ccf96.zip | |
mac/linux build fix
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
| -rw-r--r-- | zenserver/cache/structuredcachestore.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp index 7db18a7bb..23ad550c9 100644 --- a/zenserver/cache/structuredcachestore.cpp +++ b/zenserver/cache/structuredcachestore.cpp @@ -2113,8 +2113,12 @@ namespace { virtual bool VisitDirectory(const std::filesystem::path&, const path_view& DirectoryName) override { - std::string DirName8 = WideToUtf8(DirectoryName); - Dirs.push_back(DirName8); +#if ZEN_PLATFORM_WINDOWS + std::string DirectoryName8 = WideToUtf8(DirectoryName); +#else + std::string DirectoryName8 = std::string(DirectoryName); +#endif + Dirs.push_back(DirectoryName8); return false; } |