From: Wolfgang Stöggl Date: Fri, 12 Jul 2019 13:56:37 +0000 (+0200) Subject: Add check for va_copy to configure X-Git-Tag: v1.8.0~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9fb671a3624673045dc3bc47c14c43b28ce3b7b;p=thirdparty%2Frrdtool-1.x.git Add check for va_copy to configure 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 --- diff --git a/configure.ac b/configure.ac index 5194eda9..f79f1c09 100644 --- a/configure.ac +++ b/configure.ac @@ -221,6 +221,7 @@ AC_HEADER_TIME AC_STRUCT_TM dnl figure out 'stuff' about +HW_FUNC_VA_COPY HW_FUNC_VSNPRINTF HW_FUNC_SNPRINTF HW_FUNC_VASPRINTF diff --git a/win32/rrd_config.h b/win32/rrd_config.h index 862a675e..8a6cf2e5 100644 --- a/win32/rrd_config.h +++ b/win32/rrd_config.h @@ -106,6 +106,9 @@ /* 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 */