summaryrefslogtreecommitdiffstats
path: root/external/libxml2
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2015-07-04 21:46:55 +0200
committerMichael Stahl <mstahl@redhat.com>2015-07-06 21:54:26 +0000
commit51b7970292b724e658a61ddcc79b138b4865c667 (patch)
tree8c9ecf79de1c9ca31f5794bdef98f147cd07cd76 /external/libxml2
parentAdded Test for tdf#81995 check outline numbering (diff)
downloadcore-51b7970292b724e658a61ddcc79b138b4865c667.tar.gz
core-51b7970292b724e658a61ddcc79b138b4865c667.zip
Libxml2: Fix compilation on VS 2015
Change-Id: Ia2bb2897bc3fdb04c89f3328718f32fecd30eb64 Reviewed-on: https://gerrit.libreoffice.org/16760 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'external/libxml2')
-rw-r--r--external/libxml2/UnpackedTarball_xml2.mk1
-rw-r--r--external/libxml2/libxml2-vc15.patch13
2 files changed, 14 insertions, 0 deletions
diff --git a/external/libxml2/UnpackedTarball_xml2.mk b/external/libxml2/UnpackedTarball_xml2.mk
index beed009c414a..66659b026577 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 000000000000..bdb9bb14db2c
--- /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