summaryrefslogtreecommitdiff
path: root/mbsupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'mbsupport.h')
-rw-r--r--mbsupport.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/mbsupport.h b/mbsupport.h
index db6788ce..9a62486f 100644
--- a/mbsupport.h
+++ b/mbsupport.h
@@ -71,7 +71,7 @@
/* All this glop is for dfa.c. Bleah. */
-#ifndef DJGPP
+#ifndef __DJGPP__
#define wchar_t char
#endif
@@ -81,12 +81,23 @@
#define WEOF EOF
#define towupper toupper
#define towlower tolower
-#ifndef DJGPP
+#ifndef __DJGPP__
#define btowc(x) ((int)x)
#endif
#define iswalnum isalnum
#define iswalpha isalpha
#define iswupper isupper
+#if defined(ZOS_USS)
+#undef towupper
+#undef towlower
+#undef btowc
+#undef iswalnum
+#undef iswalpha
+#undef iswupper
+#undef wctype
+#undef iswctype
+#undef wcscoll
+#endif
extern wctype_t wctype(const char *name);
extern int iswctype(wint_t wc, wctype_t desc);