From 42d65b14c7e11a9228c0879c50507cbb28c005cd Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 1 Feb 2017 13:03:06 -0600 Subject: [PATCH] libpkgconf: client: add INCLUDE environment to the cflags path filter list on windows --- libpkgconf/client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libpkgconf/client.c b/libpkgconf/client.c index a448065..b09c14d 100644 --- a/libpkgconf/client.c +++ b/libpkgconf/client.c @@ -64,6 +64,11 @@ pkgconf_client_init(pkgconf_client_t *client, pkgconf_error_handler_func_t error pkgconf_path_build_from_environ("C_INCLUDE_PATH", NULL, &client->filter_includedirs, false); pkgconf_path_build_from_environ("CPLUS_INCLUDE_PATH", NULL, &client->filter_includedirs, false); pkgconf_path_build_from_environ("OBJC_INCLUDE_PATH", NULL, &client->filter_includedirs, false); + +#ifdef _WIN32 + /* also use the path lists that MSVC uses on windows */ + pkgconf_path_build_from_environ("INCLUDE", NULL, &client->filter_includedirs, false); +#endif } /*