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

Stephan Bergmann sbergman at redhat.com
Wed Dec 21 17:14:53 UTC 2016


 external/hunspell/UnpackedTarball_hunspell.mk |    6 ++++++
 external/hunspell/clangcl-werror.patch        |   11 +++++++++++
 2 files changed, 17 insertions(+)

New commits:
commit 4e7f8e5a82e57914d07be2508c9e3ca3f7ca6ff0
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Dec 21 18:13:48 2016 +0100

    external/hunspell: Work around -Werror,-Wundef with clang-cl
    
    ...when lingucomponent/source/spellcheck/spell/sspellimp.cxx includes
    hunspell.hxx
    
    Change-Id: Ibb4b2901a9dfbf7e145281bedeaa9d8daf79aba5

diff --git a/external/hunspell/UnpackedTarball_hunspell.mk b/external/hunspell/UnpackedTarball_hunspell.mk
index 127ca5d..f2bda3f5 100644
--- a/external/hunspell/UnpackedTarball_hunspell.mk
+++ b/external/hunspell/UnpackedTarball_hunspell.mk
@@ -17,4 +17,10 @@ $(eval $(call gb_UnpackedTarball_set_post_action,hunspell,\
 ))
 endif
 
+$(eval $(call gb_UnpackedTarball_set_patchlevel,hunspell,0))
+
+$(eval $(call gb_UnpackedTarball_add_patches,hunspell, \
+    external/hunspell/clangcl-werror.patch \
+))
+
 # vim: set noet sw=4 ts=4:
diff --git a/external/hunspell/clangcl-werror.patch b/external/hunspell/clangcl-werror.patch
new file mode 100755
index 0000000..1a41da9
--- /dev/null
+++ b/external/hunspell/clangcl-werror.patch
@@ -0,0 +1,11 @@
+--- src/hunspell/hunspell.hxx
++++ src/hunspell/hunspell.hxx
+@@ -85,7 +85,7 @@
+ #define MAXSHARPS 5
+ #define MAXWORDLEN 176
+ 
+-#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
++#if defined __GNUC__ && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
+ #  define H_DEPRECATED __attribute__((__deprecated__))
+ #elif defined(_MSC_VER) && (_MSC_VER >= 1300)
+ #  define H_DEPRECATED __declspec(deprecated)


More information about the Libreoffice-commits mailing list