morevnaproject / morevna-builds

14 stars 5 forks source link

build: bump target Windows version for synfig-core #108

Closed ice0 closed 11 months ago

ice0 commented 11 months ago

Currently build fails with the following error because GetUserDefaultLocaleName is available since Windows Vista (WINVER=0x0600). https://learn.microsoft.com/en-us/windows/win32/api/winnls/nf-winnls-getuserdefaultlocalename

So I raised the target Windows version for Synfig.


os.cpp: In function 'const std::vector<std::__cxx11::basic_string<char> >& synfig::OS::get_user_lang()':
os.cpp:810:11: error: 'GetUserDefaultLocaleName' was not declared in this scope; did you mean 'GetUserDefaultUILanguage'?
  810 |  if (0 != GetUserDefaultLocaleName(lpLocaleName, LOCALE_NAME_MAX_LENGTH)) {
      |           ^~~~~~~~~~~~~~~~~~~~~~~~
      |           GetUserDefaultUILanguage
``