don't touch absolute paths

this fixes the build when using absolute paths in ROS_INTERMEDIATE or ROS_OUTPUT

svn path=/trunk/; revision=28294
This commit is contained in:
Christoph von Wittich 2007-08-11 21:22:00 +00:00
parent e379a4d781
commit b95a167c31

View 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)
{