So far, configure did not check for va_copy and HAVE_VA_COPY was
undefined. A check for HAVE_VA_COPY is part of rrd_snprintf.c
- Add HW_FUNC_VA_COPY to configure.ac
- MSVC has got va_copy(), so define it in win32/rrd_config.h:
#define HAVE_VA_COPY 1
AC_STRUCT_TM
dnl figure out 'stuff' about
+HW_FUNC_VA_COPY
HW_FUNC_VSNPRINTF
HW_FUNC_SNPRINTF
HW_FUNC_VASPRINTF
/* Define to 1 if you have the `vasprintf' function. */
#define HAVE_VASPRINTF 1
+/* Define to 1 if you have the `va_copy' function or macro. */
+#define HAVE_VA_COPY 1
+
/* Misc missing Windows defines */
#ifndef PATH_MAX /* PATH_MAX is defined in win32/dirent.h too. Relevant, if included before rrd_config.h */
#define PATH_MAX _MAX_PATH /* max. length of full pathname is 260 under Windows, _MAX_PATH is defined in stdlib.h */