aboutsummaryrefslogtreecommitdiffstats
path: root/mbsupport.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-09-21 22:45:28 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-09-21 22:45:28 +0300
commit997dbc7f520c811e4c5325b9536f72cb454560cc (patch)
tree14dcc0a02d36df67d0016145a4a34c2d4243be77 /mbsupport.h
parentbc5591ac396525b1cf2a2e43f4396b4b854edd9b (diff)
downloadegawk-997dbc7f520c811e4c5325b9536f72cb454560cc.tar.gz
egawk-997dbc7f520c811e4c5325b9536f72cb454560cc.tar.bz2
egawk-997dbc7f520c811e4c5325b9536f72cb454560cc.zip
Make no mbs support work everywhere. Sheesh.
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