summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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),