From: Doug Evans Date: Wed, 29 Nov 1995 23:01:50 +0000 (+0000) Subject: * cccp.c (do_include): Recognize c:\foo as absolute path name in DOS. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f5541c735f577d626f368646fdd47d4e0abbcc8;p=gcc.git * cccp.c (do_include): Recognize c:\foo as absolute path name in DOS. From-SVN: r10631 --- diff --git a/gcc/cccp.c b/gcc/cccp.c index 39f1a5ae7c8..12d86edfc74 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -4482,6 +4482,14 @@ get_filename: if (*fbeg == '/' #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);