Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] fix failure of D07multibyte on Mac OS X



> +#if defined(__APPLE__) && defined(BROKEN_ISPRINT)
> +#define ISPRINT(c)  isprint_ascii(c)
> +#else
> +#define ISPRINT(c)  isprint(c)
> +#endif

It seems that an effect of this patch is that a build on Solaris now
results in lots of warnings of this form:
"../../Src/ztype.h", line 82: warning: macro redefined: ISPRINT

Doing a grep for ISPRINT in /usr/include gives these two definitions,
though I've not traced which if either is being picked up.
/usr/include/netinet/ip_compat.h:#define        ISPRINT(x) isprint((u_char)(x))
/usr/include/sys/euc.h:#define  ISPRINT(c, wp)  (wp._multibyte && !ISASCII(c) || isprint(c))

It's only a warning but it may be nicer to rename the macro to better
avoid the conflict.

Oliver



Messages sorted by: Reverse Date, Date, Thread, Author