1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +03:00

Visual Studio 14 CTP defines snprintf()

Related to https://bugzilla.gnome.org/show_bug.cgi?id=737937
related changes for libxslt
This commit is contained in:
Daniel Veillard
2014-10-13 15:17:30 +08:00
parent ec39a33e02
commit 73e08bf7c3
2 changed files with 4 additions and 0 deletions

View File

@ -78,7 +78,9 @@ static int isnan (double d) {
#include <direct.h> #include <direct.h>
#if defined(_MSC_VER) || defined(__MINGW32__) #if defined(_MSC_VER) || defined(__MINGW32__)
#if _MSC_VER < 1900
#define snprintf _snprintf #define snprintf _snprintf
#endif
#if _MSC_VER < 1500 #if _MSC_VER < 1500
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a) #define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
#endif #endif

View File

@ -57,7 +57,9 @@
#if defined(_MSC_VER) || defined(__MINGW32__) #if defined(_MSC_VER) || defined(__MINGW32__)
#include <winsock2.h> #include <winsock2.h>
#define gettimeofday(p1,p2) #define gettimeofday(p1,p2)
#if _MSC_VER < 1900
#define snprintf _snprintf #define snprintf _snprintf
#endif
#endif /* _MS_VER */ #endif /* _MS_VER */
#else /* WIN32 */ #else /* WIN32 */
#if defined(HAVE_SYS_TIME_H) #if defined(HAVE_SYS_TIME_H)