summaryrefslogtreecommitdiff
path: root/external/hunspell
diff options
context:
space:
mode:
Diffstat (limited to 'external/hunspell')
-rw-r--r--external/hunspell/UnpackedTarball_hunspell.mk6
-rwxr-xr-xexternal/hunspell/clangcl-werror.patch11
2 files changed, 17 insertions, 0 deletions
diff --git a/external/hunspell/UnpackedTarball_hunspell.mk b/external/hunspell/UnpackedTarball_hunspell.mk
index 127ca5d8a0b1..f2bda3f55cff 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 000000000000..1a41da93c523
--- /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)