summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfilingFile.c
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-01-06 20:03:21 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-01-06 20:03:21 +0000
commit4e3a0d5a8f750527f2f433019967f8f8214c558a (patch)
treeab93a9af59dcc83ceaf0deabab831818cc44e49c /lib/profile/InstrProfilingFile.c
parent5c909fa013fc285f010a95e8d387e0ef3412da9c (diff)
Notes
Diffstat (limited to 'lib/profile/InstrProfilingFile.c')
-rw-r--r--lib/profile/InstrProfilingFile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/profile/InstrProfilingFile.c b/lib/profile/InstrProfilingFile.c
index 4ea7fbf9738ae..bf50c02761d39 100644
--- a/lib/profile/InstrProfilingFile.c
+++ b/lib/profile/InstrProfilingFile.c
@@ -17,6 +17,10 @@
#define UNCONST(ptr) ((void *)(uintptr_t)(ptr))
+#ifdef _MSC_VER
+#define snprintf _snprintf
+#endif
+
/* Return 1 if there is an error, otherwise return 0. */
static uint32_t fileWriter(ProfDataIOVec *IOVecs, uint32_t NumIOVecs,
void **WriterCtx) {