From e2b2680da7ff448bba6fc0e94766cb758519513e Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Mon, 9 Mar 2009 11:58:58 +0100 Subject: [PATCH] Unbreak compilation with --without-wc-funcs on OS X 10.5.*, see #3149. --- ChangeLog | 8 ++++++++ mutt.h | 6 ++++++ regex.c | 13 +++++++++++-- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d80c3255..fca1162f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-03-09 11:49 +0100 Rocco Rutte (bcf1e9692caf) + + * init.h: Fix 11cd72da743a + +2009-03-09 11:30 +0100 Rocco Rutte (11cd72da743a) + + * ChangeLog, init.h: Sort SSL-related variables, see #3191. + 2009-03-09 11:11 +0100 Rocco Rutte (a96d427b203b) * hash.c, hash.h, init.c, mh.c, thread.c: Restore $reverse_alias diff --git a/mutt.h b/mutt.h index 5ccb3a1f..87b41785 100644 --- a/mutt.h +++ b/mutt.h @@ -35,6 +35,12 @@ #include #include #include +/* 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 #ifdef HAVE_WCHAR_H # include #endif diff --git a/regex.c b/regex.c index af7a20a0..e766f1c2 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) -- 2.40.0