]> granicus.if.org Git - graphviz/commitdiff
Provide implementation of snprintf for Windows
authorerg <devnull@localhost>
Tue, 29 May 2007 19:29:16 +0000 (19:29 +0000)
committererg <devnull@localhost>
Tue, 29 May 2007 19:29:16 +0000 (19:29 +0000)
plugin/core/gvrender_core_vml.c

index 7b3f9eee5208a2ccf358b3b054499d148a001743..eff9f922091187210ad8de6716da75e791bff85b 100644 (file)
@@ -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;