mirror of
https://github.com/unittest-cpp/unittest-cpp
synced 2026-09-27 00:28:49 +03:00
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:
parent
e5dc218387
commit
cd36781bed
1 changed files with 4 additions and 0 deletions
|
|
@ -23,6 +23,10 @@ void MemoryOutStream::Clear()
|
|||
#include <cstring>
|
||||
#include <cstdio>
|
||||
|
||||
#if _MSC_VER
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
namespace UnitTest {
|
||||
|
||||
namespace {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue