aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-01-09 08:22:57 +0000
committerChristopher Faylor <me@cgf.cx>2003-01-09 08:22:57 +0000
commitafbd09c568a622746d250134ed170fd46153dce9 (patch)
tree329221982b3cf272b6e8443813b6e58c6e38e233
parent918939cf19683bfab3a37ee77282b1f864165903 (diff)
downloadnewlib-github/unlabeled-1.106.8.zip
newlib-github/unlabeled-1.106.8.tar.gz
newlib-github/unlabeled-1.106.8.tar.bz2
-rw-r--r--winsup/cygwin/winsup.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h
index 59988ed..0c5a0ac 100644
--- a/winsup/cygwin/winsup.h
+++ b/winsup/cygwin/winsup.h
@@ -105,7 +105,7 @@ extern HANDLE title_mutex;
/**************************** Convenience ******************************/
/* Used when treating / and \ as equivalent. */
-#define SLASH_P(ch) \
+#define isdirsep(ch) \
({ \
char __c = (ch); \
((__c) == '/' || (__c) == '\\'); \
@@ -124,7 +124,6 @@ extern unsigned int signal_shift_subtract;
#undef issep
#define issep(ch) (strchr (" \t\n\r", (ch)) != NULL)
-#define isdirsep SLASH_P
#define isabspath(p) \
(isdirsep (*(p)) || (isalpha (*(p)) && (p)[1] == ':' && (!(p)[2] || isdirsep ((p)[2]))))