[libxslt] Visual Studio 14 CTP defines snprintf()



commit 73e08bf7c36a9145d38f51d37e66529b873c011a
Author: Daniel Veillard <veillard redhat com>
Date:   Mon Oct 13 15:17:30 2014 +0800

    Visual Studio 14 CTP defines snprintf()
    
    Related to https://bugzilla.gnome.org/show_bug.cgi?id=737937
    related changes for libxslt

 libxslt/win32config.h |    2 ++
 xsltproc/xsltproc.c   |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libxslt/win32config.h b/libxslt/win32config.h
index e1ceae1..33bc570 100644
--- a/libxslt/win32config.h
+++ b/libxslt/win32config.h
@@ -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
diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c
index 66d8cbb..de4605e 100644
--- a/xsltproc/xsltproc.c
+++ b/xsltproc/xsltproc.c
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]