From 517551348aaab6857ff9fa8c1dbc2215a95114d4 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 31 Dec 2019 19:54:57 -0600 Subject: [PATCH] [ox/fs] Fix GCC/Clang incompatibility --- deps/ox/src/ox/fs/filesystem/passthroughfs.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp b/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp index d8039872..ff5464ce 100644 --- a/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp +++ b/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp @@ -89,7 +89,8 @@ class PassThroughFS: public FileSystem { template ox::Error PassThroughFS::ls(const char *dir, F cb) { for (auto &p : std::filesystem::directory_iterator(m_path / stripSlash(dir))) { - oxReturnError(cb(p.path().filename().u8string(), 0)); + auto u8p = p.path().filename().u8string(); + oxReturnError(cb(u8p.c_str(), 0)); } return OxError(0); }