Fix build against hunspell 1.4.0 - needed in Staging:H OBS-URL: https://build.opensuse.org/request/show/393246 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/enchant?expand=0&rev=24
16 lines
448 B
Diff
16 lines
448 B
Diff
Index: enchant-1.6.0/src/myspell/myspell_checker.cpp
|
|
===================================================================
|
|
--- enchant-1.6.0.orig/src/myspell/myspell_checker.cpp
|
|
+++ enchant-1.6.0/src/myspell/myspell_checker.cpp
|
|
@@ -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)
|
|
{
|