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:
@ -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
|
||||||
|
@ -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)
|
||||||
|
Reference in New Issue
Block a user