Correct location of rpl_* defines to outside "#if !HAVE_VSNPRINTF"

This commit is contained in:
Joel Rosdahl 2010-11-28 15:23:05 +01:00
parent 11584a8546
commit e113d8a816

View File

@ -293,6 +293,23 @@
#define VA_SHIFT(ap, value, type) value = va_arg(ap, type)
#endif /* HAVE_STDARG_H */
#if !HAVE_VSNPRINTF
int rpl_vsnprintf(char *, size_t, const char *, va_list);
#define vsnprintf rpl_vsnprintf
#endif
#if !HAVE_SNPRINTF
int rpl_snprintf(char *, size_t, const char *, ...);
#define snprintf rpl_snprintf
#endif
#if !HAVE_VASPRINTF
int rpl_vasprintf(char **, const char *, va_list);
#define vasprintf rpl_vasprintf
#endif
#if !HAVE_ASPRINTF
int rpl_asprintf(char **, const char *, ...);
#define asprintf rpl_asprintf
#endif
#if !HAVE_VASPRINTF
#if HAVE_STDLIB_H
#include <stdlib.h> /* For malloc(3). */
@ -524,23 +541,6 @@ static LDOUBLE mypow10(int);
extern int errno;
#if !HAVE_VSNPRINTF
int rpl_vsnprintf(char *, size_t, const char *, va_list);
#define vsnprintf rpl_vsnprintf
#endif
#if !HAVE_SNPRINTF
int rpl_snprintf(char *, size_t, const char *, ...);
#define snprintf rpl_snprintf
#endif
#if !HAVE_VASPRINTF
int rpl_vasprintf(char **, const char *, va_list);
#define vasprintf rpl_vasprintf
#endif
#if !HAVE_ASPRINTF
int rpl_asprintf(char **, const char *, ...);
#define asprintf rpl_asprintf
#endif
int
rpl_vsnprintf(char *str, size_t size, const char *format, va_list args)
{