Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gnulib-local / lib / fnmatch.c.diff
1 *** lib/fnmatch.c.bak   2006-07-11 13:54:17.000000000 +0200
2 --- lib/fnmatch.c       2006-07-30 20:23:09.000000000 +0200
3 ***************
4 *** 276,282 ****
5   fnmatch (const char *pattern, const char *string, int flags)
6   {
7   # if HANDLE_MULTIBYTE
8 ! #  define ALLOCA_LIMIT 2000
9     if (__builtin_expect (MB_CUR_MAX, 1) != 1)
10       {
11         mbstate_t ps;
12 --- 276,286 ----
13   fnmatch (const char *pattern, const char *string, int flags)
14   {
15   # if HANDLE_MULTIBYTE
16 ! #  if HAVE_ALLOCA || defined _LIBC
17 ! #   define ALLOCA_LIMIT 2000
18 ! #  else
19 ! #   define ALLOCA_LIMIT 0
20 ! #  endif
21     if (__builtin_expect (MB_CUR_MAX, 1) != 1)
22       {
23         mbstate_t ps;