notcurses-tester: yank out std::filesystem

This commit is contained in:
nick black 2021-08-08 03:53:42 -04:00
parent 180b030de5
commit 34e6abc133

View File

@ -25,9 +25,10 @@ auto testing_notcurses() -> struct notcurses* {
template <typename T> using uniqptr = std::unique_ptr<T,free_deleter>; template <typename T> using uniqptr = std::unique_ptr<T,free_deleter>;
auto find_data(const char* datum) -> uniqptr<char> { auto find_data(const char* datum) -> uniqptr<char> {
std::filesystem::path p = datadir; std::string s = datadir;
p /= datum; s += path_seperator();
uniqptr<char> uptr(strdup(p.c_str())); s += datum;
uniqptr<char> uptr(strdup(s.c_str()));
return uptr; return uptr;
} }