From 9cb572cb73d5109640831dca8e646352eb27e09c Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sat, 24 Feb 2001 17:25:15 -0500 Subject: [svn-r3512] Purpose: Bug Fix Description: Some platforms (gondolin) don't necessarily have the vsnprintf function. Solution: Changed it to HDvsnprintf and added a header for H5private to include it... Platforms tested: Linux --- tools/lib/h5tools_str.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c index 6fd6f85..a119b66 100644 --- a/tools/lib/h5tools_str.c +++ b/tools/lib/h5tools_str.c @@ -13,6 +13,7 @@ #include #include +#include "H5private.h" #include "h5tools.h" /*for h5dump_t structure */ #include "h5tools_str.h" /*function prototypes */ @@ -101,7 +102,7 @@ h5tools_str_append(h5tools_str_t *str/*in,out*/, const char *fmt, ...) while (1) { size_t avail = str->nalloc - str->len; - size_t nchars = (size_t)vsnprintf(str->s + str->len, avail, fmt, ap); + size_t nchars = (size_t)HDvsnprintf(str->s + str->len, avail, fmt, ap); if (nchars < avail) { /* success */ -- cgit v0.12