Add fs.cpp/h

This commit is contained in:
Wladimir J. van der Laan
2017-03-01 15:53:56 +00:00
parent a2cd0b0eec
commit 19e36bbef6
3 changed files with 43 additions and 0 deletions

17
src/fs.cpp Normal file
View 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