Skip to content

Commit

Permalink
Fixed VC14 compiler issue.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jakakonda committed Aug 13, 2015
1 parent 83c7f56 commit 0c492cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ccutil/platform.h
Expand Up @@ -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) */
Expand Down

0 comments on commit 0c492cb

Please sign in to comment.