Kaydet (Commit) 4e7f8e5a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

external/hunspell: Work around -Werror,-Wundef with clang-cl

...when lingucomponent/source/spellcheck/spell/sspellimp.cxx includes
hunspell.hxx

Change-Id: Ibb4b2901a9dfbf7e145281bedeaa9d8daf79aba5
üst 6b8ee3c9
......@@ -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:
--- 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)
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