Salome HOME
bos #23995: normalize ParaView patches names
[tools/sat_salome.git] / products / patches / libxml2-2.9.1.patch
1 diff -Naur libxml2-2.9.0.orig/include/win32config.h libxml2-2.9.0/include/win32config.h
2 --- libxml2-2.9.0.orig/include/win32config.h    2012-09-05 14:14:55.000000000 +0300
3 +++ libxml2-2.9.0/include/win32config.h 2017-01-17 16:24:17.021776800 +0300
4 @@ -95,7 +95,9 @@
5  
6  #if defined(_MSC_VER)
7  #define mkdir(p,m) _mkdir(p)
8 +#if _MSC_VER < 1900
9  #define snprintf _snprintf
10 +#endif
11  #if _MSC_VER < 1500
12  #define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
13  #endif
14 diff -Naur libxml2-2.9.0.orig/win32/VC10/config.h libxml2-2.9.0/win32/VC10/config.h
15 --- libxml2-2.9.0.orig/win32/VC10/config.h      2012-09-11 06:52:46.000000000 +0300
16 +++ libxml2-2.9.0/win32/VC10/config.h   2017-01-17 15:55:19.015090100 +0300
17 @@ -96,7 +96,9 @@
18  
19  #if defined(_MSC_VER)
20  #define mkdir(p,m) _mkdir(p)
21 +#if _MSC_VER < 1900 // Cannot define this in VS 2015 and above!
22  #define snprintf _snprintf
23 +#endif
24  #if _MSC_VER < 1500
25  #define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
26  #endif