summaryrefslogtreecommitdiff
path: root/chardefs.h
diff options
context:
space:
mode:
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