commit | 017fae04ec75818bb6ace3a0dcda67d29947a1bd | [log] [tgz] |
---|---|---|
author | Vinson Lee <vlee@vmware.com> | Mon Oct 05 18:42:58 2009 -0700 |
committer | Brian Paul <brianp@vmware.com> | Tue Oct 06 09:13:14 2009 -0600 |
tree | 33e8a98448c633c667834b4255735877cf3a16df | |
parent | ec58dac86d3068b47c5a4e0187ef56985dcbf75c [diff] [blame] |
progs/perf: Fix MSVC build.
diff --git a/progs/perf/common.c b/progs/perf/common.c index 722f4b7..b6489ef 100644 --- a/progs/perf/common.c +++ b/progs/perf/common.c
@@ -30,6 +30,10 @@ #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.