bug-gnulib
[Top][All Lists]
Advanced

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

Re: AIX 5.1 xlc va_copy (stdarg patch)


From: Bruno Haible
Subject: Re: AIX 5.1 xlc va_copy (stdarg patch)
Date: Wed, 27 Feb 2008 05:03:01 +0100
User-agent: KMail/1.5.4

Peter O'Gorman wrote:
> It looks like gl_CHECK_NEXT_HEADERS fails for headers that do not
> declare any functions. stdarg.h only defines macros :(

Yes. I think this is unavoidable.

So, we cannot use gl_CHECK_NEXT_HEADERS for stdarg.h.

Instead, how about generating the stdarg.h replacement only for
  defined _AIX && !defined __GNUC__
and letting it look like this:

#ifndef _GL_STDARG_H
#include "/usr/include/stdarg.h"
#ifndef va_copy
#define va_copy(a,b) ((a) = (b))
#endif
#endif

It should be safe to assume that for non-GNU compilers on AIX the <stdarg.h>
is in /usr/include.

Also please submit a patch for the documentation 
(doc/posix-functions/va_copy.texi),
describing the problem that your patch is solving.

Bruno





reply via email to

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