src/locale/winrt/SDL_syslocale.c
changeset 13835 3f63f707ca4f
parent 13797 55ec5ae4aa0b
child 13837 c18c3084bd77
equal deleted inserted replaced
13834:bb68bb2d5ccb 13835:3f63f707ca4f
    33     WCHAR wbuffer[128] = L"";
    33     WCHAR wbuffer[128] = L"";
    34     int ret = 0;
    34     int ret = 0;
    35 
    35 
    36     /* !!! FIXME: do we not have GetUserPreferredUILanguages on WinPhone or UWP? */
    36     /* !!! FIXME: do we not have GetUserPreferredUILanguages on WinPhone or UWP? */
    37 # if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
    37 # if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
    38     ret = GetLocaleInfoEx(LOCALE_NAME_SYSTEM_DEFAULT, LOCALE_SNAME, wbuffer, SDL_arraylen(wbuffer));
    38     ret = GetLocaleInfoEx(LOCALE_NAME_SYSTEM_DEFAULT, LOCALE_SNAME, wbuffer, SDL_arraysize(wbuffer));
    39 # else
    39 # else
    40     ret = GetSystemDefaultLocaleName(wbuffer, SDL_arraysize(wbuffer));
    40     ret = GetSystemDefaultLocaleName(wbuffer, SDL_arraysize(wbuffer));
    41 # endif
    41 # endif
    42 
    42 
    43     if (ret > 0)
    43     if (ret > 0)