Skip to content

Commit 4ecb685

Browse files
committed
Fix other instance of VS2015 compiler problem
As with 0c492cb, in VC14 snprintf function is provided in standard library there triggering error. "snprintf Do not define snprintf as a macro. Macro definition of snprintf conflicts with Standard Library function declaration"
1 parent 2c675dc commit 4ecb685

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

viewer/svutil.h

+2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
#ifdef _WIN32
2828
#ifndef __GNUC__
2929
#include <windows.h>
30+
#if defined(_MSC_VER) && _MSC_VER < 1900
3031
#define snprintf _snprintf
32+
#endif
3133
#if (_MSC_VER <= 1400)
3234
#define vsnprintf _vsnprintf
3335
#endif

0 commit comments

Comments
 (0)