gtk: Fix version resource on for Windows 11 SDK
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 13 Oct 2021 04:16:06 +0000 (12:16 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 31 Oct 2021 21:52:05 +0000 (17:52 -0400)
The rc.exe that comes with the Windows 11 SDK does not allow one to include
winuser.h directly in the .rc scripts, so make sure that it is not included
by gtk-win32.rc.body.in, but instead include windows.h with WIN32_LEAN_AND_MEAN
defined.

gtk/gtk-win32.rc.body.in

index b876a6ddf51846236f2c77e4c529b0c0a84e303e..fc2dfd2ed31ed518cc8238bd5b5602cc4a343f02 100644 (file)
@@ -1,5 +1,5 @@
-#include <winuser.h>
-#include <winver.h>
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
 
 GTK_ICON               ICON                    "gtk.ico"