]> granicus.if.org Git - mutt/commitdiff
fix compile error with --with-regex and --without-wc-funcs
authorMichael Elkins <me@sigpipe.org>
Wed, 15 Sep 2010 18:47:39 +0000 (11:47 -0700)
committerMichael Elkins <me@sigpipe.org>
Wed, 15 Sep 2010 18:47:39 +0000 (11:47 -0700)
regex.c

diff --git a/regex.c b/regex.c
index e766f1c2dfa4ce973da65f43653f57960e0a4082..e68fb6ac34bf74735bb9738d8376f16cf66bebfb 100644 (file)
--- a/regex.c
+++ b/regex.c
@@ -2217,7 +2217,7 @@ regex_compile (pattern, size, syntax, bufp)
                        the leading `:' and `[' (but set bits for them).  */
                     if (c == ':' && *p == ']')
                       {
-#if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H)
+#if defined _LIBC || (defined HAVE_WC_FUNCS && defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H)
                         boolean is_lower = STREQ (str, "lower");
                         boolean is_upper = STREQ (str, "upper");
                        wctype_t wt;