Skip to content

Commit

Permalink
Merge pull request #36 from ensan-hcl/fix/spell_checker
Browse files Browse the repository at this point in the history
Add #else to enable compile in non-Apple platforms
  • Loading branch information
ensan-hcl authored Feb 19, 2024
2 parents b02f6eb + a6b5fec commit 83535f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/KanaKanjiConverterModule/Converter/SpellChecker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import AppKit
return checker.completions(forPartialWordRange: range, in: string, language: language)
#elseif os(macOS)
return checker.completions(forPartialWordRange: range, in: string, language: language, inSpellDocumentWithTag: 0)
#else
return nil
#endif
}
}

0 comments on commit 83535f1

Please sign in to comment.