]> git.lyx.org Git - features.git/commitdiff
native spell checker of Mac OSX Tiger does not support language enumerate - assume...
authorStephan Witt <switt@lyx.org>
Sun, 20 Feb 2011 18:28:12 +0000 (18:28 +0000)
committerStephan Witt <switt@lyx.org>
Sun, 20 Feb 2011 18:28:12 +0000 (18:28 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37743 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/AppleSpeller.m

index a50365c7cb926d04fd48251820b6034ae55082a2..82901f4664768591a9a9dc3b45f17c98650dc7db 100644 (file)
@@ -249,5 +249,9 @@ void AppleSpeller_misspelledWord(AppleSpeller speller, int index, int * start, i
 
 int AppleSpeller_hasLanguage(AppleSpeller speller, const char * lang)
 {
+#if defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && (__MAC_OS_X_VERSION_MAX_ALLOWED >= 1050)
        return toLanguage(speller, lang) != nil;
+#else
+       return true;
+#endif
 }