aboutsummaryrefslogtreecommitdiffstats
path: root/util/regcomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/regcomp.c')
-rw-r--r--util/regcomp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/regcomp.c b/util/regcomp.c
index 13cce2573..c517b71cc 100644
--- a/util/regcomp.c
+++ b/util/regcomp.c
@@ -26,6 +26,10 @@
#include <stdlib.h>
#include <string.h>
+#ifdef _WIN32
+#define MB_CUR_MAX 2
+#endif
+
#if defined HAVE_WCHAR_H || defined _LIBC
# include <wchar.h>
#endif /* HAVE_WCHAR_H || _LIBC */