April 17, 2026
5:31 p.m.
On Fri Apr 17 17:19:04 2026 +0000, Rémi Bernon wrote:
Well this rather requires HAVE_XKBCOMMON_XKBREGISTRY_H more than SONAME_LIBXKBREGISTRY. Once the initialization of those pointers is keyed onto `SONAME_LIBXKBREGISTRY`, this has to as well, otherwise if the header is present but the library isn't (maybe because the 32-bit version isn't around) you'd get a bunch of unused static variable declarations. Probably an uncommon case, especially with the new wow64 becoming the standard, but it's a relatively sane setup.
I think the nicest way of handling this is to check just `HAVE_XKBCOMMON_XKBREGISTRY_H` but undef it when there is no `SONAME_LIBXKBREGISTRY`. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10550#note_136802