From b3267258b052557fc136b9a4dcb754afb9219470 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Wed, 13 Jul 2022 12:32:43 -0400 Subject: Move FopenFn to fsbridge namespace [META] In a future commit in this patchset, it will be used by more than just validation, and it needs to align with fopen anyway. --- src/fs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/fs.h') diff --git a/src/fs.h b/src/fs.h index cc55793b95..e8b34319bb 100644 --- a/src/fs.h +++ b/src/fs.h @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -199,6 +200,7 @@ bool create_directories(const std::filesystem::path& p, std::error_code& ec) = d /** Bridge operations to C stdio */ namespace fsbridge { + using FopenFn = std::function; FILE *fopen(const fs::path& p, const char *mode); /** -- cgit v1.2.3