aboutsummaryrefslogtreecommitdiffstats
path: root/mbsupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'mbsupport.h')
-rw-r--r--mbsupport.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mbsupport.h b/mbsupport.h
index 4c9e9bfb..6008da77 100644
--- a/mbsupport.h
+++ b/mbsupport.h
@@ -36,6 +36,8 @@
#include <stdlib.h>
#endif
+#ifndef NO_MBSUPPORT
+
#if defined(HAVE_ISWCTYPE) \
&& defined(HAVE_LOCALE_H) \
&& defined(HAVE_MBRLEN) \
@@ -58,6 +60,10 @@
# define MBS_SUPPORT 0
#endif
+#else /* NO_MBSUPPORT is defined */
+# define MBS_SUPPORT 0
+#endif
+
#if ! MBS_SUPPORT
# undef MB_CUR_MAX
# define MB_CUR_MAX 1