Use OTTD2FS for unlink when using iconv

This commit is contained in:
Jonathan G Rennison
2024-03-24 13:34:40 +00:00
parent e9c8c36af7
commit c295b1d99e

View File

@@ -200,6 +200,7 @@
std::wstring OTTD2FS(const std::string &name);
# elif defined(WITH_ICONV)
# define fopen(file, mode) fopen(OTTD2FS(file).c_str(), mode)
# define unlink(file) unlink(OTTD2FS(file).c_str())
std::string FS2OTTD(const std::string &name);
std::string OTTD2FS(const std::string &name);
# else