From: erg Date: Tue, 29 May 2007 19:29:16 +0000 (+0000) Subject: Provide implementation of snprintf for Windows X-Git-Tag: LAST_LIBGRAPH~32^2~5558 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20e19da4bc8ebf77f9e304990c43be97022889b0;p=graphviz Provide implementation of snprintf for Windows --- diff --git a/plugin/core/gvrender_core_vml.c b/plugin/core/gvrender_core_vml.c index 7b3f9eee5..eff9f9220 100644 --- a/plugin/core/gvrender_core_vml.c +++ b/plugin/core/gvrender_core_vml.c @@ -38,6 +38,19 @@ extern void core_printf(GVJ_t * job, const char *format, ...); char graphcoords[256]; +#ifdef WIN32 +static int +snprintf (char *str, int n, char *fmt, ...) +{ +int ret; +va_list a; +va_start (a, fmt); +ret = vsnprintf (str, n, fmt, a); +va_end (a); +return ret; +} +#endif + static void vml_bzptarray(GVJ_t * job, pointf * A, int n) { int i;