diff options
author | Vlad Voicu <vladv@rosedu.org> | 2012-03-08 13:10:15 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-03-09 15:04:11 (GMT) |
commit | 02f7f0d98e937d8ec2d527ac701daf783bb37f27 (patch) | |
tree | 90555f4fd78725042cddb0abac32fca403a94be9 /SwifTools/SpellCheckerFactory.h | |
parent | dbc27f2f163c33366fc9ca31088f0c255963168b (diff) | |
download | swift-contrib-02f7f0d98e937d8ec2d527ac701daf783bb37f27.zip swift-contrib-02f7f0d98e937d8ec2d527ac701daf783bb37f27.tar.bz2 |
Gracefully degrade when hunspell is not present
Diffstat (limited to 'SwifTools/SpellCheckerFactory.h')
-rw-r--r-- | SwifTools/SpellCheckerFactory.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SwifTools/SpellCheckerFactory.h b/SwifTools/SpellCheckerFactory.h index d58a9ec..5519db5 100644 --- a/SwifTools/SpellCheckerFactory.h +++ b/SwifTools/SpellCheckerFactory.h @@ -6,6 +6,10 @@ #pragma once +#ifdef HAVE_HUNSPELL +#define HAVE_SPELLCHECKER +#endif + namespace Swift { class SpellChecker; class SpellCheckerFactory { |