Skip to content

Fix building against the Windows 11 SDK (GTK+-3.x)

Chun-wei Fan requested to merge fix-win11-sdk-3 into gtk-3-24

Hi,

It was reported in 1 that GTK+-3.24.x fails to build on Visual Studio when the Windows 11 SDK is being used when the resource compiler is being used, with a rather cryptic error message. This fixes the build against the Windows 11 SDK by ensuring that our .rc files do not try to include winuser.h directly, but instead includes windows.h with WIN32_LEAN_AND_MEAN defined.

Similar items will likely be needed for GTK-4.x.

Merge request reports