mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-07 13:25:04 +00:00
13 lines
241 B
C++
13 lines
241 B
C++
|
#include "fileutils.h"
|
||
|
#ifdef _WIN32
|
||
|
#include "utfutils.h"
|
||
|
#endif
|
||
|
|
||
|
FILE* ps_fopen(const char* path, const char* mode) {
|
||
|
#ifdef _WIN32
|
||
|
return _wfopen(utf8To16(path).c_str(),utf8To16(mode).c_str());
|
||
|
#else
|
||
|
return fopen(path,mode);
|
||
|
#endif
|
||
|
}
|