summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/file.c b/file.c
index 3578b17a1e..407a76d8ac 100644
--- a/file.c
+++ b/file.c
@@ -1434,7 +1434,7 @@ nextdirsep(s)
return (char *)s;
}
-
+#if defined(DOSISH_UNC) || defined(DOSISH_DRIVE_LETTER)
static inline char *
skipprefix(path)
const char *path;
@@ -1450,9 +1450,11 @@ skipprefix(path)
if (has_drive_letter(path))
return (char *)(path + 2);
#endif
- while (isdirsep(*path)) path++;
return (char *)path;
}
+#else
+#define skipprefix(path) (path)
+#endif
static char *
strrdirsep(path)