summaryrefslogtreecommitdiff
path: root/libc/misc/regex/regcomp.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-16 12:35:43 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-16 12:35:43 +0000
commit255fb838c8d0ad983aec17c6fd6fd779589d19eb (patch)
tree76f89532e3088130a6e365683c225d7a8477d6f6 /libc/misc/regex/regcomp.c
parenteb326e80ad546842fcd7f14a7e91c175caade6fa (diff)
Macros are no good for jump relocs, hack to get rid of one introduced my new regex code
Diffstat (limited to 'libc/misc/regex/regcomp.c')
-rw-r--r--libc/misc/regex/regcomp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/misc/regex/regcomp.c b/libc/misc/regex/regcomp.c
index 9d6c78cda..b15109c93 100644
--- a/libc/misc/regex/regcomp.c
+++ b/libc/misc/regex/regcomp.c
@@ -834,6 +834,9 @@ 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_internal ())
+extern size_t _stdlib_mb_cur_max_internal (void) __THROW __wur attribute_hidden;
dfa->mb_cur_max = MB_CUR_MAX;
#else
dfa->mb_cur_max = 1;