protoize.c (abspath): Preserve multiple leading slashes for _WIN32 and Interix.
authorMumit Khan <khan@xraylith.wisc.edu>
Tue, 23 Mar 1999 21:53:39 +0000 (21:53 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 23 Mar 1999 21:53:39 +0000 (14:53 -0700)
        * protoize.c (abspath): Preserve multiple leading slashes for
        _WIN32 and Interix.

Co-Authored-By: Donn Terry <donn@interix.com>
From-SVN: r25933

gcc/ChangeLog
gcc/protoize.c

index dc1496bf34a76b6ba9bc87311b0351d81dc32685..897e1c1d7df5c705372c374ac7dc563c9441cbcb 100644 (file)
@@ -1,3 +1,9 @@
+Tue Mar 23 22:51:48 1999  Mumit Khan  <khan@xraylith.wisc.edu>
+                         Donn Terry  <donn@interix.com>
+
+       * protoize.c (abspath): Preserve multiple leading slashes for
+       _WIN32 and Interix.
+
 1999-01-23  Mike Stump  <mrs@wrs.com>
 
        * arm/vxarm.h: Split out vxWorks support into separate headerfile
index a2e9cb5baa39203494b6461a51efa1d12c7cc636..3c5ee622f51ea6c1f8b4881c2daa0b297158bbbf 100644 (file)
@@ -1287,7 +1287,7 @@ abspath (cwd, rel_filename)
 
   outp = inp = abs_buffer;
   *outp++ = *inp++;            /* copy first slash */
-#ifdef apollo
+#if defined (apollo) || defined (_WIN32) || defined (__INTERIX)
   if (inp[0] == '/')
     *outp++ = *inp++;          /* copy second slash */
 #endif