[gtk/gtk-3-24: 1/2] Win32: Fix typo on compilation speedup macro define



commit a9d7d41b59f3ccb44d2652ee40a66cc2a28541cd
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 43c3897ded..60ee80762e 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]