locale: Patched to compile on Windows Phone.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 20 May 2020 16:15:14 -0400
changeset 138353f63f707ca4f
parent 13834 bb68bb2d5ccb
child 13836 9ebb8a2929b7
locale: Patched to compile on Windows Phone.
src/locale/winrt/SDL_syslocale.c
     1.1 --- a/src/locale/winrt/SDL_syslocale.c	Tue May 19 13:22:01 2020 -0400
     1.2 +++ b/src/locale/winrt/SDL_syslocale.c	Wed May 20 16:15:14 2020 -0400
     1.3 @@ -35,7 +35,7 @@
     1.4  
     1.5      /* !!! FIXME: do we not have GetUserPreferredUILanguages on WinPhone or UWP? */
     1.6  # if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
     1.7 -    ret = GetLocaleInfoEx(LOCALE_NAME_SYSTEM_DEFAULT, LOCALE_SNAME, wbuffer, SDL_arraylen(wbuffer));
     1.8 +    ret = GetLocaleInfoEx(LOCALE_NAME_SYSTEM_DEFAULT, LOCALE_SNAME, wbuffer, SDL_arraysize(wbuffer));
     1.9  # else
    1.10      ret = GetSystemDefaultLocaleName(wbuffer, SDL_arraysize(wbuffer));
    1.11  # endif