]> gcc.gnu.org Git - gcc.git/commitdiff
* cccp.c (do_include): Recognize c:\foo as absolute path name in DOS.
authorDoug Evans <dje@gnu.org>
Wed, 29 Nov 1995 23:01:50 +0000 (23:01 +0000)
committerDoug Evans <dje@gnu.org>
Wed, 29 Nov 1995 23:01:50 +0000 (23:01 +0000)
From-SVN: r10631

gcc/cccp.c

index 39f1a5ae7c894eda2f730c93c3da46c04e4a4947..12d86edfc74ed14ab6b1ad13d1833a58cd1115b7 100644 (file)
@@ -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);
This page took 0.078325 seconds and 5 git commands to generate.