[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AIX 5.1 xlc va_copy (stdarg patch)

From: Paul Eggert
Subject: Re: AIX 5.1 xlc va_copy (stdarg patch)
Date: Tue, 26 Feb 2008 15:46:15 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

"Peter O'Gorman" <address@hidden> writes:

> +#if ! @HAVE_VA_COPY@
> +#define va_copy(a,b) ((a) = (b))
> +#endif

Wouldn't it be simpler to do this?

#ifndef va_copy
#define va_copy(a,b) ((a) = (b))

After all, if there is already a va_copy, and it disagrees with our
substitute, we're probably wrong.  Doing this removes the need for
generating or substituting HAVE_VA_COPY.  va_copy is required to be a
macro, so this should be safe.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]