mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 03:03:58 +01:00
Add fs.cpp/h
This commit is contained in:
17
src/fs.cpp
Normal file
17
src/fs.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "fs.h"
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
namespace fsbridge {
|
||||
|
||||
FILE *fopen(const fs::path& p, const char *mode)
|
||||
{
|
||||
return ::fopen(p.string().c_str(), mode);
|
||||
}
|
||||
|
||||
FILE *freopen(const fs::path& p, const char *mode, FILE *stream)
|
||||
{
|
||||
return ::freopen(p.string().c_str(), mode, stream);
|
||||
}
|
||||
|
||||
} // fsbridge
|
||||
Reference in New Issue
Block a user