Merge #11747: Fix: Open files read only if requested
[bitcoinplatinum.git] / src / fs.cpp
blob570ed3e2ee2c6828475bae26bc44539f7e8e8567
1 #include <fs.h>
3 namespace fsbridge {
5 FILE *fopen(const fs::path& p, const char *mode)
7 return ::fopen(p.string().c_str(), mode);
10 FILE *freopen(const fs::path& p, const char *mode, FILE *stream)
12 return ::freopen(p.string().c_str(), mode, stream);
15 } // fsbridge