Linking fails when building with clang-cl because of str[n]casecmp
When building GLib on Windows with clang-cl:
[1/546] Linking target glib/glib-2.0-0.dll
FAILED: glib/glib-2.0-0.dll glib/glib-2.0-0.pdb
"lld-link" @glib/glib-2.0-0.dll.rsp
lld-link: error: undefined symbol: strcasecmp
>>> referenced by C:\Users\Aleksandr\glib\glib\glib-init.c:149
>>> glib/glib-2.0-0.dll.p/glib-init.c.obj:(g_parse_debug_string)
>>> referenced by C:\Users\Aleksandr\glib\glib\gstrfuncs.c:1903
>>> glib/glib-2.0-0.dll.p/gstrfuncs.c.obj:(g_strcasecmp)
lld-link: error: undefined symbol: strncasecmp
>>> referenced by C:\Users\Aleksandr\glib\glib\gstrfuncs.c:1961
>>> glib/glib-2.0-0.dll.p/gstrfuncs.c.obj:(g_strncasecmp)
[2/546] Compiling C object glib/tests/dataset.exe.p/dataset.c.obj
ninja: build stopped: subcommand failed.
Related Meson issue: https://github.com/mesonbuild/meson/issues/5628
Workaround for a similar issue with stpcpy
: 1b94bfbd