On Tue, Feb 26, 2008 at 03:46:15PM -0800, Paul Eggert wrote: > "Peter O'Gorman" <[EMAIL PROTECTED]> 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)) > #endif > > 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. >
Yes, it would be simpler and I would have done that had it even crossed my mind :) Peter