external/libxml2/UnpackedTarball_xml2.mk | 1 + external/libxml2/libxml2-vc15.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+)
New commits: commit 51b7970292b724e658a61ddcc79b138b4865c667 Author: David Ostrovsky <da...@ostrovsky.org> Date: Sat Jul 4 21:46:55 2015 +0200 Libxml2: Fix compilation on VS 2015 Change-Id: Ia2bb2897bc3fdb04c89f3328718f32fecd30eb64 Reviewed-on: https://gerrit.libreoffice.org/16760 Reviewed-by: Michael Stahl <mst...@redhat.com> Tested-by: Michael Stahl <mst...@redhat.com> diff --git a/external/libxml2/UnpackedTarball_xml2.mk b/external/libxml2/UnpackedTarball_xml2.mk index beed009..66659b0 100644 --- a/external/libxml2/UnpackedTarball_xml2.mk +++ b/external/libxml2/UnpackedTarball_xml2.mk @@ -19,6 +19,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,xml2,\ $(if $(filter ANDROID,$(OS)),external/libxml2/libxml2-android.patch) \ external/libxml2/libxml2-icu.patch.0 \ external/libxml2/ubsan.patch.0 \ + external/libxml2/libxml2-vc15.patch \ )) # vim: set noet sw=4 ts=4: diff --git a/external/libxml2/libxml2-vc15.patch b/external/libxml2/libxml2-vc15.patch new file mode 100644 index 0000000..bdb9bb1 --- /dev/null +++ b/external/libxml2/libxml2-vc15.patch @@ -0,0 +1,13 @@ +diff -ur xml2.org/include/win32config.h xml2/include/win32config.h +--- misc/xml2/include/win32config.h 2015-07-04 21:35:50.600013534 +0200 ++++ misc/xml2/include/win32config.h 2015-07-04 21:36:12.455015001 +0200 +@@ -95,7 +95,9 @@ + + #if defined(_MSC_VER) + #define mkdir(p,m) _mkdir(p) ++#if _MSC_VER < 1900 + #define snprintf _snprintf ++#endif + #if _MSC_VER < 1500 + #define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a) + #endif _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits