Kaydet (Commit) dacdb66f authored tarafından David Ostrovsky's avatar David Ostrovsky Kaydeden (comit) Michael Stahl

Libxslt: Fix compilation on VS 2015

Change-Id: Icb7f7cb20f5e2b200442bbc2d2bd4eb540170045
Reviewed-on: https://gerrit.libreoffice.org/16761Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 51b79702
......@@ -21,6 +21,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,xslt,\
$(if $(filter ANDROID,$(OS)),external/libxslt/libxslt-android.patch) \
external/libxslt/libxslt-config-guess.patch.0 \
external/libxslt/rpath.patch.0 \
external/libxslt/libxslt-vc15.patch \
))
# vim: set noet sw=4 ts=4:
diff -ur xslt.org/libxslt/win32config.h xslt/libxslt/win32config.h
--- misc/xslt/libxslt/win32config.h 2015-07-04 22:36:52.522061462 +0200
+++ misc/xslt/libxslt/win32config.h 2015-07-04 22:37:33.023064181 +0200
@@ -79,7 +79,9 @@
#include <direct.h>
#if defined(_MSC_VER) || defined(__MINGW32__)
#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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment