summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-09-11 19:51:32 +0200
committerJim Meyering <meyering@redhat.com>2011-09-16 14:29:55 +0200
commitba10005a6df3c2bb94cf85a6ddb28b26ff459af7 (patch)
treedc18f707b926cef6df4ada895ac59a0706786b9d
parent93927af364aa09dc23a50ca8e4c9a62af0132c59 (diff)
downloadgrep-ba10005a6df3c2bb94cf85a6ddb28b26ff459af7.tar.gz
maint: ensure that MB_CUR_MAX is defined even when !MBS_SUPPORT
* src/mbsupport.h [!MBS_SUPPORT] (MB_CUR_MAX): Define to 1.
-rw-r--r--src/mbsupport.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbsupport.h b/src/mbsupport.h
index 007f412a..06729e17 100644
--- a/src/mbsupport.h
+++ b/src/mbsupport.h
@@ -33,3 +33,8 @@
#else
# define MBS_SUPPORT 0
#endif
+
+#if ! MBS_SUPPORT
+# undef MB_CUR_MAX
+# define MB_CUR_MAX 1
+#endif