Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
special declaration of snprintf on Visual C++
[simgrid.git] / testsuite / xbt / graphxml_usage.c
index cf89b3c..61ed6d5 100644 (file)
  #pragma hdrstop
  #endif
  
  #pragma hdrstop
  #endif
  
+#include <stdio.h>
+
+#ifdef _MSC_VER
+#define snprintf       _snprintf
+#endif
+
 #include "xbt/module.h"
 #include "xbt/sysdep.h"
 #include "xbt/graph.h"
 #include "xbt/module.h"
 #include "xbt/sysdep.h"
 #include "xbt/graph.h"
@@ -43,7 +49,7 @@ void test(char *graph_file)
   int test_shortest_paths = 1;
   int test_topo_sort = 1;
 
   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;
   unsigned long n;
 
   xbt_dynar_t edges = NULL;