don't touch absolute paths
authorChristoph von Wittich <christoph_vw@reactos.org>
Sat, 11 Aug 2007 21:22:00 +0000 (21:22 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Sat, 11 Aug 2007 21:22:00 +0000 (21:22 +0000)
this fixes the build when using absolute paths in ROS_INTERMEDIATE or ROS_OUTPUT

svn path=/trunk/; revision=28294

reactos/tools/wpp/preproc.c

index c1fa3fc..5254833 100644 (file)
@@ -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)
        {