From 5e21bbf5757163725f4bd2909fc7aaa548f61fc3 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 8 Jan 2012 20:09:59 +0000 Subject: [PATCH] Rename snprintf when building with MSVC to link with CRT. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31641 a1c6a512-1295-4272-9138-f99709370657 --- tools/wavtrim.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/wavtrim.c b/tools/wavtrim.c index 36a1151b4d..c2d0351362 100644 --- a/tools/wavtrim.c +++ b/tools/wavtrim.c @@ -27,6 +27,10 @@ #include "wavtrim.h" +#ifdef _MSC_VER +#define snprintf _snprintf +#endif + /* place a 32 bit value into memory, little endian */ void Write32(unsigned char* pByte, unsigned long value) {