From: Wolfgang Stöggl Date: Sat, 6 Jul 2019 03:45:20 +0000 (+0200) Subject: Include asprintf.h in rrd_info.c for MSVC builds X-Git-Tag: v1.8.0~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7610d590f6d1140d52b09b206ccaddb7c24e3675;p=thirdparty%2Frrdtool-1.x.git Include asprintf.h in rrd_info.c for MSVC builds - Fixes the following MSVC level 3 compiler warning: rrd_info.c(21): warning C4013: 'vasprintf' undefined; assuming extern returning int - This is a follow-up to PR #828 and commit b1bcbca --- diff --git a/src/rrd_info.c b/src/rrd_info.c index ea383fc0..76277e84 100644 --- a/src/rrd_info.c +++ b/src/rrd_info.c @@ -8,6 +8,9 @@ #include "rrd_rpncalc.h" #include "rrd_client.h" #include +#ifdef _MSC_VER +#include "asprintf.h" /* for vasprintf() here */ +#endif /* allocate memory for string */ char *sprintf_alloc(