progs/perf: Fix MSVC build.
authorVinson Lee <vlee@vmware.com>
Tue, 6 Oct 2009 01:42:58 +0000 (18:42 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 6 Oct 2009 15:13:14 +0000 (09:13 -0600)
progs/perf/common.c

index 722f4b7b4543a5084a9c326ab818c6a94899bbab..b6489ef918de04a2018c089617c5a36cbbbe7ca7 100644 (file)
 #include <stdlib.h>
 #include <stdarg.h>
 
+#if defined(_MSC_VER)
+#define snprintf _snprintf
+#endif
+
 
 /* Need to add a fflush windows console with mingw, otherwise nothing
  * shows up until program exit.  May want to add logging here.