diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-03-01 15:53:56 +0000 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-04-03 12:32:32 +0200 |
commit | 19e36bbef60bfed36954fa515e57dfb074d7a3da (patch) | |
tree | bf957da20730fb6a2e83871fe2e7bbcbba543e43 /src/fs.cpp | |
parent | a2cd0b0eecfedb6aa6a9d3618f13cd77e1ba3042 (diff) |
Add fs.cpp/h
Diffstat (limited to 'src/fs.cpp')
-rw-r--r-- | src/fs.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/fs.cpp b/src/fs.cpp new file mode 100644 index 0000000000..6f2b768de3 --- /dev/null +++ b/src/fs.cpp @@ -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 |