Commit 6f5541c7 by Doug Evans

* cccp.c (do_include): Recognize c:\foo as absolute path name in DOS.

From-SVN: r10631
parent c1da383f
......@@ -4483,6 +4483,14 @@ get_filename:
#ifdef DIR_SEPARATOR
|| *fbeg == DIR_SEPARATOR
#endif
#if defined (__MSDOS__) || defined (_WIN32)
|| (isalpha (fbeg[0]) && fbeg[1] == ':'
&& (fbeg[2] == '/'
#ifdef DIR_SEPARATOR
|| fbeg[2] == DIR_SEPARATOR
#endif
))
#endif
) {
strncpy (fname, (char *) fbeg, flen);
fname[flen] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment