aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/path.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index f2dff1b..76ab208 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -108,3 +108,5 @@ int __stdcall slash_unc_prefix_p (const char *path);
set_errno (__err); \
__err; \
})
+
+#define isdrive(s) (isalpha (*(s)) && (s)[1] == ':')