| 25 | namespace fsbridge { |
| 26 | |
| 27 | FILE *fopen(const fs::path& p, const char *mode) |
| 28 | { |
| 29 | #ifndef WIN32 |
| 30 | return ::fopen(p.c_str(), mode); |
| 31 | #else |
| 32 | std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>,wchar_t> utf8_cvt; |
| 33 | return ::_wfopen(p.wstring().c_str(), utf8_cvt.from_bytes(mode).c_str()); |
| 34 | #endif |
| 35 | } |
| 36 | |
| 37 | fs::path AbsPathJoin(const fs::path& base, const fs::path& path) |
| 38 | { |
no outgoing calls