From b95a167c319b77c55d04d4c435dcf0444e3467b5 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Sat, 11 Aug 2007 21:22:00 +0000 Subject: [PATCH] don't touch absolute paths this fixes the build when using absolute paths in ROS_INTERMEDIATE or ROS_OUTPUT svn path=/trunk/; revision=28294 --- reactos/tools/wpp/preproc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/reactos/tools/wpp/preproc.c b/reactos/tools/wpp/preproc.c index c1fa3fc6ec7..52548332292 100644 --- a/reactos/tools/wpp/preproc.c +++ b/reactos/tools/wpp/preproc.c @@ -328,6 +328,15 @@ void wpp_add_include_path(const char *path) char *tok; char *cpy = pp_xstrdup(path); + /* check for absolute windows paths */ + if (strchr(cpy, ':') != NULL) + { + nincludepath++; + includepath = pp_xrealloc(includepath, nincludepath * sizeof(*includepath)); + includepath[nincludepath-1] = cpy; + return; + } + tok = strtok(cpy, INCLUDESEPARATOR); while(tok) {