Create fio wrapper for rename file

This commit is contained in:
Jonathan G Rennison
2023-07-09 12:42:35 +01:00
parent f190b9815a
commit f6e8ea059d
4 changed files with 11 additions and 2 deletions

View File

@@ -220,7 +220,6 @@
# define fopen(file, mode) _wfopen(OTTD2FS(file).c_str(), _T(mode))
# 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::wstring OTTD2FS(const std::string &name);