Fix to declare missing `snprintf` prototype at correct place

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

@ -1146,7 +1146,7 @@ __END_DECLS
#if !defined(HAVE_VSNPRINTF_PROTO)
#if !defined(HAVE_VSNPRINTF_PROTO) || !defined(HAVE_SNPRINTF_PROTO)
#if __STDC__
#include <stdarg.h>
#include <stdlib.h>
@ -1156,11 +1156,15 @@ __END_DECLS
#ifdef __cplusplus
extern "C"
#endif
#if !defined(HAVE_VSNPRINTF_PROTO)
int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
#endif
#if !defined(HAVE_SNPRINTF_PROTO)
int snprintf(char *str, size_t n, char const *fmt, ...);
#endif
#ifdef __cplusplus
extern "C"
#endif
int snprintf(char *str, size_t n, char const *fmt, ...);
#endif

Loading…
Cancel
Save