I have an application which uses old-style va_*, with varargs.h. It works fine 
in many platforms except when compiled with SSL.

Unfortunately, SSL seems to '#include <stdarg.h>' itself and the two 
definitions of va_* clash. Here is an example on Solaris :

 "/usr/include/iso/stdarg_iso.h", line 78: warning: macro redefined: va_start
"/usr/include/iso/stdarg_iso.h", line 117: warning: useless declaration
"/usr/include/iso/stdarg_iso.h", line 118: warning: macro redefined: va_end

And on FreeBSD, where the bad (for me) va_start is selected:

/usr/include/stdarg.h:47: warning: `va_start' redefined
/usr/include/varargs.h:60: warning: this is the location of the previous 
definition
error.c:29: macro `va_start' used with just one arg

Strangely, on Linux, everything is fine (with the same compiler than FreeBSD).

Is there a way to tell OpenSSL *not* to include stdarg.h or should I add more 
#ifdef in my code?


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to