diff options
-rw-r--r-- | libxslt/win32config.h | 2 | ||||
-rw-r--r-- | xsltproc/xsltproc.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libxslt/win32config.h b/libxslt/win32config.h index e1ceae10..33bc5700 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 66d8cbbc..de4605e6 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) |