summaryrefslogtreecommitdiff
path: root/chardefs.h
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-11-23 19:12:30 -0500
committerChet Ramey <chet.ramey@case.edu>2011-11-23 19:12:30 -0500
commitbcd7f75a2bc2f7c67c9cd6899ff546afa45cbba4 (patch)
tree71f09c9e7e2a9be3c3aa79e31cb48d7069d8a979 /chardefs.h
parent753c336c548b9a1358058751c6288b6e31458d89 (diff)
downloadreadline-bcd7f75a2bc2f7c67c9cd6899ff546afa45cbba4.tar.gz
Readline-5.0 import
Diffstat (limited to 'chardefs.h')
-rw-r--r--chardefs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/chardefs.h b/chardefs.h
index a537be2..cb04c98 100644
--- a/chardefs.h
+++ b/chardefs.h
@@ -77,7 +77,11 @@
# define isxdigit(c) (isdigit((c)) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F'))
#endif
-#define NON_NEGATIVE(c) ((unsigned char)(c) == (c))
+#if defined (CTYPE_NON_ASCII)
+# define NON_NEGATIVE(c) 1
+#else
+# define NON_NEGATIVE(c) ((unsigned char)(c) == (c))
+#endif
/* Some systems define these; we want our definitions. */
#undef ISPRINT