[gtk/gtk-4-4] gtk: Fix version resource on for Windows 11 SDK
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-4-4] gtk: Fix version resource on for Windows 11 SDK
- Date: Sun, 31 Oct 2021 21:52:14 +0000 (UTC)
commit 9cdc332e8a306ff118b676f66a8e5c5e29cfc0fd
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Oct 13 12:16:06 2021 +0800
gtk: Fix version resource on for Windows 11 SDK
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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtk-win32.rc.body.in b/gtk/gtk-win32.rc.body.in
index b876a6ddf5..fc2dfd2ed3 100644
--- a/gtk/gtk-win32.rc.body.in
+++ b/gtk/gtk-win32.rc.body.in
@@ -1,5 +1,5 @@
-#include <winuser.h>
-#include <winver.h>
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
GTK_ICON ICON "gtk.ico"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]