add wpp_ros.diff

svn path=/trunk/; revision=31866
This commit is contained in:
Christoph von Wittich
2008-01-18 14:42:20 +00:00
parent d4fb037596
commit a9de2ac45a

View File

@@ -0,0 +1,20 @@
Index: preproc.c
===================================================================
--- preproc.c (revision 28293)
+++ preproc.c (revision 28294)
@@ -328,6 +328,15 @@
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)
{