[libpeas/meson.msvc: 7/7] peas-dirs.c: Fix building on Visual Studio



commit 9d90d4d80a2a0fead5543c39b5f19786d21f9e5e
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Apr 29 18:56:21 2020 +0800

    peas-dirs.c: Fix building on Visual Studio
    
    libloadersapi.h should not have been included directly, just include
    windows.h with WIN32_LEAN_AND_MEAN defined.

 libpeas/peas-dirs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/libpeas/peas-dirs.c b/libpeas/peas-dirs.c
index 7cb08e2..6f182e2 100644
--- a/libpeas/peas-dirs.c
+++ b/libpeas/peas-dirs.c
@@ -32,7 +32,8 @@
 #ifdef G_OS_WIN32
 // inspired by gobject-introspection...
 
-#include <libloaderapi.h>
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
 
 static HMODULE libpeas_dll = NULL;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]