aboutsummaryrefslogtreecommitdiffstats
path: root/mbsupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'mbsupport.h')
-rw-r--r--mbsupport.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/mbsupport.h b/mbsupport.h
index 1a30785d..57abaa60 100644
--- a/mbsupport.h
+++ b/mbsupport.h
@@ -40,6 +40,7 @@
#if defined(HAVE_ISWCTYPE) \
&& defined(HAVE_LOCALE_H) \
+ && defined(HAVE_BTOWC) \
&& defined(HAVE_MBRLEN) \
&& defined(HAVE_MBRTOWC) \
&& defined(HAVE_WCHAR_H) \
@@ -70,10 +71,11 @@
/* All this glop is for dfa.c. Bleah. */
+#define wchar_t char
#define wctype_t int
-#define wint_t int
+#define wint_t int
#define mbstate_t int
-#define WEOF EOF
+#define WEOF EOF
#define towupper toupper
#define towlower tolower
#define btowc(x) (x)