aboutsummaryrefslogtreecommitdiffstats
path: root/mbsupport.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-10-09 21:22:55 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-10-09 21:22:55 +0200
commit06f3e569c7c153a5d0f2dc5667822c562e77ca9f (patch)
tree2a7c5ba3d7fa182edd3cf5d93d0629da22ae9880 /mbsupport.h
parent194d9dc454d361ee5c707e71a5e3512fbe3a71cd (diff)
parent35d9ad9209592594905d1c8f15130d09af111411 (diff)
downloadegawk-06f3e569c7c153a5d0f2dc5667822c562e77ca9f.tar.gz
egawk-06f3e569c7c153a5d0f2dc5667822c562e77ca9f.tar.bz2
egawk-06f3e569c7c153a5d0f2dc5667822c562e77ca9f.zip
Merge branch 'gawk-4.0-stable'
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 c3a6b333..6008da77 100644
--- a/mbsupport.h
+++ b/mbsupport.h
@@ -3,7 +3,7 @@
*/
/*
- * Copyright (C) 2004, 2005 the Free Software Foundation, Inc.
+ * Copyright (C) 2004, 2005, 2011 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
@@ -36,6 +36,8 @@
#include <stdlib.h>
#endif
+#ifndef NO_MBSUPPORT
+
#if defined(HAVE_ISWCTYPE) \
&& defined(HAVE_LOCALE_H) \
&& defined(HAVE_MBRLEN) \
@@ -55,5 +57,14 @@
/* We can handle multibyte strings. */
# define MBS_SUPPORT 1
#else
-# undef MBS_SUPPORT
+# 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
#endif