Author: cwittich Date: Sun Aug 12 01:22:00 2007 New Revision: 28294
URL: http://svn.reactos.org/svn/reactos?rev=28294&view=rev Log: don't touch absolute paths this fixes the build when using absolute paths in ROS_INTERMEDIATE or ROS_OUTPUT
Modified: trunk/reactos/tools/wpp/preproc.c
Modified: trunk/reactos/tools/wpp/preproc.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/wpp/preproc.c?rev=282... ============================================================================== --- trunk/reactos/tools/wpp/preproc.c (original) +++ trunk/reactos/tools/wpp/preproc.c Sun Aug 12 01:22:00 2007 @@ -327,6 +327,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)