diff options
Diffstat (limited to 'backends/platform/sdl/win32/win32_wrapper.h')
-rw-r--r-- | backends/platform/sdl/win32/win32_wrapper.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backends/platform/sdl/win32/win32_wrapper.h b/backends/platform/sdl/win32/win32_wrapper.h index 5722d8844f..91cbe3a891 100644 --- a/backends/platform/sdl/win32/win32_wrapper.h +++ b/backends/platform/sdl/win32/win32_wrapper.h @@ -44,6 +44,16 @@ bool confirmWindowsVersion(int majorVersion, int minorVersion); * @note Return value must be freed by the caller. */ wchar_t *ansiToUnicode(const char *s); +/** + * Converts a Windows wide-character string into a C string. + * Used to interact with Win32 Unicode APIs with no ANSI fallback. + * + * @param s Source string + * @return Converted string + * + * @note Return value must be freed by the caller. + */ +char *unicodeToAnsi(const wchar_t *s); } |