Skip to content
Snippets Groups Projects
Commit 8d3b948e authored by Eidolon's avatar Eidolon
Browse files

cmake: Fix compilation for MSVC 2015

snprintf is now available in MSVC 2015!
parent ec79756c
Branches
Tags
No related merge requests found
......@@ -100,9 +100,9 @@ typedef long ssize_t;
#if defined (_MSC_VER) || defined (__OS2__)
// Microsoft VisualC++
#ifdef _MSC_VER
#if (_MSC_VER <= 1800) // MSVC 2013 and back
#define snprintf _snprintf
#if (_MSC_VER <= 1200)
#if (_MSC_VER <= 1200) // MSVC 2012 and back
#define vsnprintf _vsnprintf
#endif
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment