[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - lingucomponent/source

David Tardon dtardon at redhat.com
Thu Feb 16 15:43:39 UTC 2017


 lingucomponent/source/spellcheck/spell/sspellimp.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 1a2feaf01cbd41e66c1d656276d072ca5c750b18
Author: David Tardon <dtardon at redhat.com>
Date:   Thu Dec 15 10:36:18 2016 +0100

    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 at debian.org>
    Tested-by: Rene Engelhard <rene at debian.org>

diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index a47ab58..27b8f91 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),


More information about the Libreoffice-commits mailing list