Commit 73e08bf7 authored by Daniel Veillard's avatar Daniel Veillard

Visual Studio 14 CTP defines snprintf()

Related to https://bugzilla.gnome.org/show_bug.cgi?id=737937
related changes for libxslt
parent ec39a33e
......@@ -78,7 +78,9 @@ static int isnan (double d) {
#include <direct.h>
#if defined(_MSC_VER) || defined(__MINGW32__)
#if _MSC_VER < 1900
#define snprintf _snprintf
#endif
#if _MSC_VER < 1500
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
#endif
......
......@@ -57,7 +57,9 @@
#if defined(_MSC_VER) || defined(__MINGW32__)
#include <winsock2.h>
#define gettimeofday(p1,p2)
#if _MSC_VER < 1900
#define snprintf _snprintf
#endif
#endif /* _MS_VER */
#else /* WIN32 */
#if defined(HAVE_SYS_TIME_H)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment