X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/14c29200cb58d3c4a0830265f2433849781858d0..c71aaa5c83036e5b1685f66887d51832b6fb49f7:/regex.c?ds=sidebyside diff --git a/regex.c b/regex.c index af7a20a..e766f1c 100644 --- a/regex.c +++ b/regex.c @@ -56,6 +56,13 @@ #undef DEBUG +/* On OS X 10.5.x, wide char functions are inlined by default breaking + * --without-wc-funcs compilation + */ +#ifdef __APPLE_CC__ +#define _DONT_USE_CTYPE_INLINE_ +#endif + #if (defined(HAVE_ALLOCA_H) && !defined(_AIX)) # include #endif @@ -73,10 +80,12 @@ /* For platform which support the ISO C amendement 1 functionality we support user defined character classes. */ -#if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H) -# include +#ifdef HAVE_WCHAR_H # include #endif +#if defined(HAVE_WCTYPE_H) && defined(HAVE_WC_FUNCS) +# include +#endif /* This is for other GNU distributions with internationalized messages. */ #if HAVE_LIBINTL_H || defined (_LIBC)