On Wednesday 20 June 2007 07:57:15 [EMAIL PROTECTED] wrote:

> Modified:
>    trunk/src/inter_call.c
>
> Log:
> Changed MAX to PARROT_MAX to avoid conflicts with any existing MAX

> Modified: trunk/src/inter_call.c
> ===========================================================================
>=== --- trunk/src/inter_call.c (original)
> +++ trunk/src/inter_call.c    Wed Jun 20 07:57:14 2007
> @@ -27,6 +27,8 @@
>
>  /* HEADER: include/parrot/inter_call.h */
>
> +/* Make sure we don't conflict with any other MAX() macros defined
> elsewhere */ +#define PARROT_MAX(a,b) (((a)) > (b) ? (a) : (b))

Alternately, we could hoist this macro into a header, rename it back to MAX, 
and define it only if no system header defines MAX.  I think it's in math.h, 
but I'm not positive.

-- c

Reply via email to