mirror of
https://github.com/libretro/RetroArch
synced 2025-03-12 04:14:23 +00:00
rarch_convert_wchar_to_const_char function is portable, so
hose it out of ifdef _XBOX define
This commit is contained in:
parent
8cb3172eea
commit
025ea6608f
@ -756,11 +756,11 @@ wchar_t * rarch_convert_char_to_wchar(const char * str)
|
||||
MultiByteToWideChar(CP_ACP, 0, str, -1, w_str, dwNum);
|
||||
return w_str;
|
||||
}
|
||||
#endif
|
||||
|
||||
const char * rarch_convert_wchar_to_const_char(const wchar_t * wstr)
|
||||
{
|
||||
char str[256];
|
||||
wcstombs(str, wstr, sizeof(str));
|
||||
return str;
|
||||
char str[256];
|
||||
wcstombs(str, wstr, sizeof(str));
|
||||
return str;
|
||||
}
|
||||
#endif
|
@ -126,7 +126,9 @@ void rarch_console_rsound_stop(void);
|
||||
|
||||
#ifdef _XBOX
|
||||
wchar_t * rarch_convert_char_to_wchar(const char * str);
|
||||
const char * rarch_convert_wchar_to_const_char(const wchar_t * wstr);
|
||||
#endif
|
||||
|
||||
const char * rarch_convert_wchar_to_const_char(const wchar_t * wstr);
|
||||
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user