fix build with hunspell 1.4

hunspell 1.4.0 doesn't expose MAXWORDLEN anymore.
Origin: upstream bug
Bug: http://bugzilla.abisource.com/show_bug.cgi?id=13772
Bug-Debian: https://bugs.debian.org/821464

Gbp-Pq: Name fix_for_hunspell_1.4.diff
This commit is contained in:
Caolan McNamara 2022-05-14 03:25:03 +08:00 committed by openKylinBot
parent 90bb9d3d1d
commit 15dccff260
1 changed files with 4 additions and 0 deletions

View File

@ -148,6 +148,10 @@ MySpellChecker::~MySpellChecker()
g_iconv_close(m_translate_out);
}
#ifndef MAXWORDLEN
# define MAXWORDLEN 100
#endif
bool
MySpellChecker::checkWord(const char *utf8Word, size_t len)
{