On our downstream gtk-win32 project we are maintaining a patch for quite a while already to make it build with MSVC. It would be great if somebody could take the interesting parts from it and push it upstream:
One concern before applying that patch, does it still work on MinGW? they also use WIN32 on ifdef lines.
All i can say is that mingw-w64 fontconfig-2.12.1 builds with this patch and passes all tests in the testsuite (all 4 of them...).
Though you should probably define FLEXIBLE_ARRAY_MEMBER to 1 (MSVC doesn't run the configure script, which detects this and defines this macro) instead of hardcoding 1 there.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/85.