summaryrefslogtreecommitdiff
path: root/libc/misc/regex
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-23 14:42:02 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-23 14:42:02 +0000
commitba9a21b2fa45a29a9e3dff6e0b199d8da5059811 (patch)
tree3185ae6223c0143df31281f9584cce9a93cd0440 /libc/misc/regex
parent1129cd16b42185f258fbe8d53a0fb11f1d530f42 (diff)
Get rid of nested warnings
Diffstat (limited to 'libc/misc/regex')
-rw-r--r--libc/misc/regex/regcomp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/misc/regex/regcomp.c b/libc/misc/regex/regcomp.c
index 9da0562ff..df7c02181 100644
--- a/libc/misc/regex/regcomp.c
+++ b/libc/misc/regex/regcomp.c
@@ -805,6 +805,10 @@ re_compile_internal (regex_t *preg, const char * pattern, size_t length,
/* Initialize DFA. We use the length of the regular expression PAT_LEN
as the initial length of some arrays. */
+#ifdef __UCLIBC_HAS_WCHAR__
+libc_hidden_proto(_stdlib_mb_cur_max)
+#endif
+
static reg_errcode_t
init_dfa (re_dfa_t *dfa, size_t pat_len)
{
@@ -834,10 +838,6 @@ init_dfa (re_dfa_t *dfa, size_t pat_len)
dfa->state_hash_mask = table_size - 1;
#ifdef __UCLIBC_HAS_WCHAR__
-# undef MB_CUR_MAX
-# define MB_CUR_MAX (_stdlib_mb_cur_max ())
-extern size_t _stdlib_mb_cur_max (void) __THROW __wur;
-libc_hidden_proto(_stdlib_mb_cur_max)
dfa->mb_cur_max = MB_CUR_MAX;
#else
dfa->mb_cur_max = 1;