Andreas Krennmair:
[apps/madmutt.git] / regex.c
diff --git a/regex.c b/regex.c
index eefc2cb..a16165a 100644 (file)
--- a/regex.c
+++ b/regex.c
@@ -168,7 +168,7 @@ extern char *re_syntax_table;
 
 static char re_syntax_table[CHAR_SET_SIZE];
 
-enum { MUTT_ALNUM, MUTT_ALPHA, MUTT_BLANK, MUTT_CNTRL, MUTT_DIGIT, MUTT_GRAPH,
+enum { MUTT_ALNUM = 1, MUTT_ALPHA, MUTT_BLANK, MUTT_CNTRL, MUTT_DIGIT, MUTT_GRAPH,
        MUTT_LOWER, MUTT_PRINT, MUTT_PUNCT, MUTT_SPACE, MUTT_UPPER, MUTT_XDIGIT,
        MUTT_INVALID
      };
@@ -202,6 +202,7 @@ static int ctype(const char *name)
   return MUTT_INVALID;
 }
 
+#ifndef HAVE_ISCTYPE
 static int isctype(char c, int desc)
 {
   switch (desc) {
@@ -220,6 +221,7 @@ static int isctype(char c, int desc)
   }
   return 0; /* false */
 }
+#endif
 
 static void
 init_syntax_once ()