Remove use of std::filesystem

This appears to break compatibility with macOS 10.9
This commit is contained in:
ISSOtm
2022-12-03 01:51:14 +01:00
parent 599ce757a1
commit 7eb4ecea8b

View File

@@ -13,7 +13,6 @@
#include <assert.h>
#include <cassert>
#include <fcntl.h>
#include <filesystem>
#include <fstream>
#include <ios>
#include <iostream>
@@ -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<std::filebuf>().open(path, mode) ? this : nullptr;
} else if (mode & std::ios_base::in) {