diff options
author | David Ostrovsky <david@ostrovsky.org> | 2015-07-04 22:41:26 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-07-06 21:54:49 +0000 |
commit | dacdb66fd52380caa079cd8eac61bb9b01bcfe4c (patch) | |
tree | 80a982779ff46a8c3b8756d50b33d6a9cc127c77 /external/libxslt/libxslt-vc15.patch | |
parent | 51b7970292b724e658a61ddcc79b138b4865c667 (diff) |
Libxslt: Fix compilation on VS 2015
Change-Id: Icb7f7cb20f5e2b200442bbc2d2bd4eb540170045
Reviewed-on: https://gerrit.libreoffice.org/16761
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'external/libxslt/libxslt-vc15.patch')
-rw-r--r-- | external/libxslt/libxslt-vc15.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/external/libxslt/libxslt-vc15.patch b/external/libxslt/libxslt-vc15.patch new file mode 100644 index 000000000000..47b070883234 --- /dev/null +++ b/external/libxslt/libxslt-vc15.patch @@ -0,0 +1,13 @@ +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 |