The presence of __va_copy vs va_copy

Richard Sharpe rsharpe at
Thu Oct 23 20:24:58 GMT 2003


As some have pointed out, __va_copy() is not on some platforms, as the 
standard actually seems to be va_copy().

I propose changing the test in to look for va_copy() first, 
and set HAVE_VA_COPY, then look for __va_copy and set HAVE___VA_COPY and 
change the only file that uses it, lib/snprintf.c, to do the right things.

Does this seem OK?

Richard Sharpe, rsharpe[at], rsharpe[at], 

More information about the samba-technical mailing list