GCC build with Myspell support (mingw-cygwin)

This commit is contained in:
Stas Degteff
2006-03-12 07:57:03 +00:00
parent 99aedb1707
commit df1529fd6a
19 changed files with 280 additions and 163 deletions

View File

@@ -19,6 +19,11 @@ INCS+=-I$(TOP)/goldlib/glibc
endif
endif
include $(TOP)/Config.def
ifneq ($(findstring GCFG_NO_MYSPELL, $(CPPFLAGS)), GCFG_NO_MYSPELL)
INCS+=-I$(TOP)/goldlib/myspell
endif
include $(TOP)/GNUmakef.inc
ifeq ($(PLATFORM),emx)

View File

@@ -35,7 +35,9 @@
#include <gdirposx.h>
#include <gstrall.h>
#if !defined(GCFG_NO_MYSPELL)
#include <myspell.hxx>
#endif
#include <gespell.h>
typedef char XlatName[17];
@@ -455,7 +457,7 @@ bool CMSSpellLang::AddWord(const char *text)
bool CMYSpellLang::Init(const gdirentry *entry)
{
gposixdir dir(entry->dirname);
std::string affname = entry->name.substr(0, entry->name.length()-4);
strcpy(mLangCode, affname.c_str());