Commit 20d2928e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: define FromT/ToT to convert between UTF-8 and TCHAR

parent dd648be9
......@@ -79,6 +79,14 @@ static inline wchar_t *ToWide (const char *utf8)
MultiByteToWideChar (CP_UTF8, 0, utf8, -1, out, len);
return out;
}
# ifdef UNICODE
# define FromT FromWide
# define ToT ToWide
# else
# define FromT FromLocaleDup
# define ToT ToLocaleDup
# endif
#endif
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment