Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Enable building on FreeBSD #125

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
['OS=="linux"', {
'spellchecker_use_hunspell': 'true',
}],
['OS=="freebsd"', {
'spellchecker_use_hunspell': 'true',
}],
['OS=="win"', {
'spellchecker_use_hunspell': 'true',
}],
Expand Down Expand Up @@ -59,6 +62,12 @@
'src/transcoder_posix.cc',
],
}],
['OS=="freebsd"', {
'sources': [
'src/spellchecker_linux.cc',
'src/transcoder_posix.cc',
],
}],
['OS=="mac"', {
'sources': [
'src/spellchecker_mac.mm',
Expand Down
4 changes: 2 additions & 2 deletions vendor/hunspell/src/hunspell/affentry.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public:
struct hentry * checkword(const char * word, int len, char in_compound,
const FLAG needflag = FLAG_NULL);

struct hentry * check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL);
struct hentry * check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = FLAG_NULL);

char * check_morph(const char * word, int len, char in_compound,
const FLAG needflag = FLAG_NULL);
Expand Down Expand Up @@ -90,7 +90,7 @@ public:
// const FLAG cclass = FLAG_NULL, const FLAG needflag = FLAG_NULL, char in_compound=IN_CPD_NOT);
const FLAG cclass = FLAG_NULL, const FLAG needflag = FLAG_NULL, const FLAG badflag = 0);

struct hentry * check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL);
struct hentry * check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = FLAG_NULL);

char * check_twosfx_morph(const char * word, int len, int optflags,
PfxEntry* ppfx, const FLAG needflag = FLAG_NULL);
Expand Down