diff options
author | David Tardon <dtardon@redhat.com> | 2016-12-15 10:36:18 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-12-15 10:40:14 +0100 |
commit | 64362ec119a4f38c98d2ff959a5651f4887ff942 (patch) | |
tree | f9a15c993c489cb9194570f1395d8c1df4b7b6d0 /lingucomponent | |
parent | 5bd30fea44e544d072ff94b3812464cefd250feb (diff) |
fix build with hunspell < 1.5
Change-Id: I66810d2bf9bbd08990dd8e995e34c50caa472ff8
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/spellcheck/spell/sspellimp.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index 5a1abd76d130..41e6e8d67be1 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx @@ -60,6 +60,11 @@ using namespace linguistic; // XML-header of SPELLML queries #define SPELLML_HEADER "<?xml?>" +// only available in hunspell >= 1.5 +#if !defined MAXWORDLEN +#define MAXWORDLEN 176 +#endif + SpellChecker::SpellChecker() : aDicts(nullptr), aDEncs(nullptr), |