Fixes compile error with MSC.

Unfortunately MSC does not support C99 where snprintf was added to the
standard. As a workaround alias _snprint to snprintf.
This commit is contained in:
Sean Farrell 2013-02-15 13:34:25 +01:00
parent e5dc218387
commit cd36781bed

View file

@ -23,6 +23,10 @@ void MemoryOutStream::Clear()
#include <cstring>
#include <cstdio>
#if _MSC_VER
#define snprintf _snprintf
#endif
namespace UnitTest {
namespace {