diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-04-29 18:56:21 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-10-09 09:32:27 +0800 |
commit | e5eac65068df193f237f7bd900bdb437d8508e93 (patch) | |
tree | 4073348eb594af4907654320dd940c950932861a | |
parent | 1656eb4188bf0388795c1422248ae193a0f30311 (diff) | |
download | libpeas-meson.msvc.tar.gz |
peas-dirs.c: Fix building on Visual Studiomeson.msvc
libloadersapi.h should not have been included directly, just include
windows.h with WIN32_LEAN_AND_MEAN defined.
-rw-r--r-- | libpeas/peas-dirs.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |