[libpeas/meson.msvc: 19/19] peas-dirs.c: Fix building on Visual Studio
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas/meson.msvc: 19/19] peas-dirs.c: Fix building on Visual Studio
- Date: Fri, 9 Oct 2020 01:56:23 +0000 (UTC)
commit e5eac65068df193f237f7bd900bdb437d8508e93
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 7cb08e20..6f182e2b 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]