[gtk: 1/2] Win32: Fix typo on compilation speedup macro define
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] Win32: Fix typo on compilation speedup macro define
- Date: Sat, 22 Dec 2018 17:54:25 +0000 (UTC)
commit a52989842e8b7d648bc1a0175d69d1182fd3dd6a
Author: Luca Bacci <luca bacci982 gmail com>
Date: Sat Dec 22 00:48:10 2018 +0100
Win32: Fix typo on compilation speedup macro define
There is a typo, the correct macro to define is WIN32_LEAN_AND_MEAN.
After this change <shellapi.h> must be included in order to use
ExtractIconExW().
gtk/gtkicontheme.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index f1f9c8f074..ccdb7f77a8 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -32,8 +32,9 @@
#ifndef S_ISDIR
#define S_ISDIR(mode) ((mode)&_S_IFDIR)
#endif
-#define WIN32_MEAN_AND_LEAN
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
+#include <shellapi.h>
#include "win32/gdkwin32.h"
#endif /* G_OS_WIN32 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]