mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
locale: Patched to compile on Windows Phone.
This commit is contained in:
parent
a5c654d5c3
commit
d66b73666d
@ -35,7 +35,7 @@ SDL_SYS_GetPreferredLocales(char *buf, size_t buflen)
|
|||||||
|
|
||||||
/* !!! FIXME: do we not have GetUserPreferredUILanguages on WinPhone or UWP? */
|
/* !!! FIXME: do we not have GetUserPreferredUILanguages on WinPhone or UWP? */
|
||||||
# if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
|
# if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
|
||||||
ret = GetLocaleInfoEx(LOCALE_NAME_SYSTEM_DEFAULT, LOCALE_SNAME, wbuffer, SDL_arraylen(wbuffer));
|
ret = GetLocaleInfoEx(LOCALE_NAME_SYSTEM_DEFAULT, LOCALE_SNAME, wbuffer, SDL_arraysize(wbuffer));
|
||||||
# else
|
# else
|
||||||
ret = GetSystemDefaultLocaleName(wbuffer, SDL_arraysize(wbuffer));
|
ret = GetSystemDefaultLocaleName(wbuffer, SDL_arraysize(wbuffer));
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user