Fixed VC14 compiler issue.

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"

Signed-off-by: Jaka Konda <jaka.konda@outlook.com>
This commit is contained in:
Jaka Konda 2015-08-13 16:23:47 +02:00 committed by Zdenko Podobný
parent 76a28640c6
commit 9cc0914f06

View File

@ -29,7 +29,9 @@
#endif /* __GNUC__ */
#define SIGNED
#if defined(_MSC_VER)
#if (_MSC_VER < 1900)
#define snprintf _snprintf
#endif
#if (_MSC_VER <= 1400)
#define vsnprintf _vsnprintf
#endif /* (_MSC_VER <= 1400) */