From: Vinson Lee Date: Tue, 6 Oct 2009 01:42:58 +0000 (-0700) Subject: progs/perf: Fix MSVC build. X-Git-Tag: 062012170305~16492^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=017fae04ec75818bb6ace3a0dcda67d29947a1bd;p=profile%2Fivi%2Fmesa.git 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 #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.