summaryrefslogtreecommitdiff
path: root/gcc/protoize.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-03-23 21:53:39 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-03-23 21:53:39 +0000
commitb91ed7d0e8a5fa0c0402e36e0bbd636132cac3db (patch)
treef81bda5a319d1613f3cfcb5160ba2d2d66346e78 /gcc/protoize.c
parent3830210b5b747c0a5e390a225da6f62ed8ff2638 (diff)
downloadgcc-b91ed7d0e8a5fa0c0402e36e0bbd636132cac3db.tar.gz
* protoize.c (abspath): Preserve multiple leading slashes for
_WIN32 and Interix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25933 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/protoize.c')
-rw-r--r--gcc/protoize.c2
1 files changed, 1 insertions, 1 deletions
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