Add Windows wrapper for rename function
This commit is contained in:
@@ -220,6 +220,7 @@
|
|||||||
|
|
||||||
# define fopen(file, mode) _wfopen(OTTD2FS(file).c_str(), _T(mode))
|
# define fopen(file, mode) _wfopen(OTTD2FS(file).c_str(), _T(mode))
|
||||||
# define unlink(file) _wunlink(OTTD2FS(file).c_str())
|
# define unlink(file) _wunlink(OTTD2FS(file).c_str())
|
||||||
|
# define rename(oldname, newname) _wrename(OTTD2FS(oldname).c_str(), OTTD2FS(newname).c_str())
|
||||||
|
|
||||||
std::string FS2OTTD(const std::wstring &name);
|
std::string FS2OTTD(const std::wstring &name);
|
||||||
std::wstring OTTD2FS(const std::string &name);
|
std::wstring OTTD2FS(const std::string &name);
|
||||||
|
Reference in New Issue
Block a user