mirror of
https://github.com/reactos/ccache.git
synced 2024-11-23 03:39:44 +00:00
Correct location of rpl_* defines to outside "#if !HAVE_VSNPRINTF"
This commit is contained in:
parent
11584a8546
commit
e113d8a816
34
snprintf.c
34
snprintf.c
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user