summaryrefslogtreecommitdiffstats
path: root/progs/perf/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/perf/common.c')
-rw-r--r--progs/perf/common.c4
1 files changed, 4 insertions, 0 deletions
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 <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.