Changeset View
Changeset View
Standalone View
Standalone View
src/fs.cpp
#include "fs.h" | #include "fs.h" | ||||
#include <boost/filesystem.hpp> | |||||
namespace fsbridge { | namespace fsbridge { | ||||
FILE *fopen(const fs::path &p, const char *mode) { | FILE *fopen(const fs::path &p, const char *mode) { | ||||
return ::fopen(p.string().c_str(), mode); | return ::fopen(p.string().c_str(), mode); | ||||
} | } | ||||
FILE *freopen(const fs::path &p, const char *mode, FILE *stream) { | FILE *freopen(const fs::path &p, const char *mode, FILE *stream) { | ||||
return ::freopen(p.string().c_str(), mode, stream); | return ::freopen(p.string().c_str(), mode, stream); | ||||
} | } | ||||
} // fsbridge | } // fsbridge |