summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-12-15 09:25:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-12-15 09:25:35 +0000
commit7f9a389b45e2452d859e17cf51acd27dc7355af6 (patch)
tree40b09f1a512ba5d8a578e12b4c88d3f72a44260c /lingucomponent
parenta7c35729e00f18f79156b3f8f57472506f786074 (diff)
if building against system hunspell < 1.5.4 > 1.4.0
Change-Id: I9ba1b9c3c0e3efb00538b2f3ed4fcffc29f9e931
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 173426f019f4..5a1abd76d130 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -270,6 +270,10 @@ sal_Bool SAL_CALL SpellChecker::hasLocale(const Locale& rLocale)
return bRes;
}
+#ifndef MAXWORDLEN
+# define MAXWORDLEN 176
+#endif
+
sal_Int16 SpellChecker::GetSpellFailure(const OUString &rWord, const Locale &rLocale)
{
if (rWord.getLength() > MAXWORDLEN)