summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2016-12-15 10:36:18 +0100
committerRene Engelhard <rene@debian.org>2017-02-16 15:43:18 +0000
commit1a2feaf01cbd41e66c1d656276d072ca5c750b18 (patch)
treec1c1365154ddf1f70634e4a704f2d32fadfed0a8 /lingucomponent
parentc574fe180cdc52df8cde5623a24aeb4a75ff5a1d (diff)
fix build with hunspell < 1.5
Change-Id: I66810d2bf9bbd08990dd8e995e34c50caa472ff8 (cherry picked from commit 64362ec119a4f38c98d2ff959a5651f4887ff942) Reviewed-on: https://gerrit.libreoffice.org/34339 Reviewed-by: Rene Engelhard <rene@debian.org> Tested-by: Rene Engelhard <rene@debian.org>
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index a47ab58074e7..27b8f910448c 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),