locale: Patched to compile on Windows Phone.

This commit is contained in:
Ryan C. Gordon 2020-05-20 16:15:14 -04:00
parent a5c654d5c3
commit d66b73666d

View File

@ -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