From 8222f8d9049626eec0ff3e39bdef19b541eea164 Mon Sep 17 00:00:00 2001 From: cherierm Date: Wed, 28 Nov 2007 15:50:28 +0000 Subject: [PATCH] special declaration of snprintf on Visual C++ git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5078 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- testsuite/xbt/graphxml_usage.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/testsuite/xbt/graphxml_usage.c b/testsuite/xbt/graphxml_usage.c index e6450c04df..61ed6d555b 100644 --- a/testsuite/xbt/graphxml_usage.c +++ b/testsuite/xbt/graphxml_usage.c @@ -11,6 +11,11 @@ #endif #include + +#ifdef _MSC_VER +#define snprintf _snprintf +#endif + #include "xbt/module.h" #include "xbt/sysdep.h" #include "xbt/graph.h" @@ -44,7 +49,7 @@ void test(char *graph_file) int test_shortest_paths = 1; int test_topo_sort = 1; - int i, j; + unsigned long i, j; unsigned long n; xbt_dynar_t edges = NULL; -- 2.20.1