From 017fae04ec75818bb6ace3a0dcda67d29947a1bd Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 5 Oct 2009 18:42:58 -0700 Subject: progs/perf: Fix MSVC build. --- progs/perf/common.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'progs') diff --git a/progs/perf/common.c b/progs/perf/common.c index 722f4b7b454..b6489ef918d 100644 --- a/progs/perf/common.c +++ b/progs/perf/common.c @@ -30,6 +30,10 @@ #include #include +#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. -- cgit v1.2.3