libpkgconf: client: add INCLUDE environment to the cflags path filter list on windows

pull/116/head
William Pitcock 2017-02-01 13:03:06 -06:00
parent 1aa1a43321
commit 42d65b14c7
1 changed files with 5 additions and 0 deletions

View File

@ -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
}
/*