From: Vinson Lee Date: Tue, 6 Oct 2009 01:42:58 +0000 (-0700) Subject: progs/perf: Fix MSVC build. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=017fae04ec75818bb6ace3a0dcda67d29947a1bd;p=mesa.git progs/perf: Fix MSVC build. --- 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.