Pango build failed on MACOS 11 with error implicit declaration is invalid in C99
Hello, I'm a member of Microsoft VCPKG, recently user submit an issue about pango build failed on MACOS 11: https://github.com/microsoft/vcpkg/issues/20367. The error message as below:
../src/480391f31f-4c049f225c.clean/pango/pangofc-fontmap.c:1778:10: error: implicit declaration of function 'FcWeightFromOpenTypeDouble' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return FcWeightFromOpenTypeDouble (pango_weight);
^
../src/480391f31f-4c049f225c.clean/pango/pangofc-fontmap.c:2535:3: error: implicit declaration of function 'FcStrListFirst' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
FcStrListFirst (list);
Could you help confirm this issue and how to fix it? I add option c_std=C11 to avoid implicit declaration error. If you have new fix, I will update my change.