From 20e19da4bc8ebf77f9e304990c43be97022889b0 Mon Sep 17 00:00:00 2001 From: erg Date: Tue, 29 May 2007 19:29:16 +0000 Subject: [PATCH] Provide implementation of snprintf for Windows --- plugin/core/gvrender_core_vml.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; -- 2.40.0