ref: 7eb4ecea8bd4494fb384b24179973ab09b39058c
parent: 599ce757a1f644aba35d692cec68202944f7163f
author: ISSOtm <[email protected]>
date: Fri Dec 2 20:51:14 EST 2022
Remove use of std::filesystem This appears to break compatibility with macOS 10.9
--- a/include/file.hpp
+++ b/include/file.hpp
@@ -13,7 +13,6 @@
#include <assert.h>
#include <cassert>
#include <fcntl.h>
-#include <filesystem>
#include <fstream>
#include <ios>
#include <iostream>
@@ -48,7 +47,7 @@
* 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) {