mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Add fs.cpp/h
This commit is contained in:
parent
a2cd0b0eec
commit
19e36bbef6
3 changed files with 43 additions and 0 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue