mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
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:
parent
e379a4d781
commit
b95a167c31
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue