From 80d3055869d5135b18308380b09c424baa514cc6 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 23 Jul 2012 11:38:23 +0200 Subject: [PATCH] widl: Add IDL installation directory to include path. --- tools/widl/Makefile.in | 1 + tools/widl/widl.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/tools/widl/Makefile.in b/tools/widl/Makefile.in index f2bd3f39347..88558bb5cea 100644 --- a/tools/widl/Makefile.in +++ b/tools/widl/Makefile.in @@ -21,6 +21,7 @@ C_SRCS = \ LEX_SRCS = parser.l BISON_SRCS = parser.y +EXTRADEFS = -DDEFAULT_INCLUDE_DIR=\"$(includedir)/windows/\" INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext) all: $(PROGRAMS) diff --git a/tools/widl/widl.c b/tools/widl/widl.c index 85d66d76cc1..fc3d0d97862 100644 --- a/tools/widl/widl.c +++ b/tools/widl/widl.c @@ -643,6 +643,10 @@ int main(int argc,char *argv[]) } } +#ifdef DEFAULT_INCLUDE_DIR + wpp_add_include_path(DEFAULT_INCLUDE_DIR); +#endif + if(do_everything) { set_everything(TRUE); } -- 2.11.4.GIT