Add fs.cpp/h
This commit is contained in:
+17
@@ -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