From 7eb4ecea8bd4494fb384b24179973ab09b39058c Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sat, 3 Dec 2022 01:51:14 +0100 Subject: [PATCH] Remove use of std::filesystem This appears to break compatibility with macOS 10.9 --- include/file.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/file.hpp b/include/file.hpp index cf54b9db..38ca3763 100644 --- a/include/file.hpp +++ b/include/file.hpp @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include @@ -48,7 +47,7 @@ public: * This should only be called once, and before doing any `->` operations. * Returns `nullptr` on error, and a non-null pointer otherwise. */ - File *open(std::filesystem::path const &path, std::ios_base::openmode mode) { + File *open(std::string const &path, std::ios_base::openmode mode) { if (path != "-") { return _file.emplace().open(path, mode) ? this : nullptr; } else if (mode & std::ios_base::in) {