Fix to declare vsnprintf prototype with detected condition

It was introduced in HP-UX 10.20 (undocumented) and suppoted in 10.30 and later,
so no need to declare it on HP-UX unconditionally.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 76a04f5fce)
r14.0.x
OBATA Akio 4 years ago committed by Michele Calgaro
parent 7fdb160045
commit 295b8c54ac
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1146,11 +1146,7 @@ __END_DECLS
/* #if !defined(HAVE_VSNPRINTF_PROTO)
* On HP-UX, the declaration of vsnprintf() is needed every time !
*/
#if !defined(HAVE_VSNPRINTF) || defined(hpux)
#if __STDC__ #if __STDC__
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>

Loading…
Cancel
Save