From: Mumit Khan Date: Tue, 23 Mar 1999 21:53:39 +0000 (+0000) Subject: protoize.c (abspath): Preserve multiple leading slashes for _WIN32 and Interix. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ebf19db4678c51326b8b6642b07eeb5ce2ef036;p=gcc.git protoize.c (abspath): Preserve multiple leading slashes for _WIN32 and Interix. * protoize.c (abspath): Preserve multiple leading slashes for _WIN32 and Interix. Co-Authored-By: Donn Terry From-SVN: r25933 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dc1496bf34a..897e1c1d7df 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Tue Mar 23 22:51:48 1999 Mumit Khan + Donn Terry + + * protoize.c (abspath): Preserve multiple leading slashes for + _WIN32 and Interix. + 1999-01-23 Mike Stump * arm/vxarm.h: Split out vxWorks support into separate headerfile diff --git a/gcc/protoize.c b/gcc/protoize.c index a2e9cb5baa3..3c5ee622f51 100644 --- a/gcc/protoize.c +++ b/gcc/protoize.c @@ -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