[ros-diffs] [cwittich] 28294: don't touch absolute paths this fixes the build when using absolute paths in ROS_INTERMEDIATE or ROS_OUTPUT

cwittich at svn.reactos.org cwittich at svn.reactos.org
Sat Aug 11 23:22:01 CEST 2007


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=28294&r1=28293&r2=28294&view=diff
==============================================================================
--- 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)




More information about the Ros-diffs mailing list