diff --git a/git-compat-util.h b/git-compat-util.h
index dcf41277502f5fb8fc99b310ebdaf63b6781b3ea..878d83dd0863570042af80919899b4d6aa57e35b 100644 (file)
--- a/git-compat-util.h
+++ b/git-compat-util.h
}
/* Sane ctype - no locale, and works with signed chars */
+#undef isascii
#undef isspace
#undef isdigit
#undef isalpha
#define GIT_GLOB_SPECIAL 0x08
#define GIT_REGEX_SPECIAL 0x10
#define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0)
+#define isascii(x) (((x) & ~0x7f) == 0)
#define isspace(x) sane_istest(x,GIT_SPACE)
#define isdigit(x) sane_istest(x,GIT_DIGIT)
#define isalpha(x) sane_istest(x,GIT_ALPHA)