mirror of https://gitee.com/openkylin/enchant.git
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:
parent
90bb9d3d1d
commit
15dccff260
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue