[Libreoffice-commits] core.git: external/libxml2

David Ostrovsky david at ostrovsky.org
Mon Jul 6 14:54:54 PDT 2015


 external/libxml2/UnpackedTarball_xml2.mk |    1 +
 external/libxml2/libxml2-vc15.patch      |   13 +++++++++++++
 2 files changed, 14 insertions(+)

New commits:
commit 51b7970292b724e658a61ddcc79b138b4865c667
Author: David Ostrovsky <david at 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 <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at 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


More information about the Libreoffice-commits mailing list