mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 13:45:58 +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
|
@ -328,6 +328,15 @@ void wpp_add_include_path(const char *path)
|
||||||
char *tok;
|
char *tok;
|
||||||
char *cpy = pp_xstrdup(path);
|
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);
|
tok = strtok(cpy, INCLUDESEPARATOR);
|
||||||
while(tok)
|
while(tok)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue