X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FAppleSpeller.m;h=3e9a2f84529f286ab2174669fdd92e63567948e5;hb=faa87bf9f30b943397429a04254d96963bbf38bc;hp=a50365c7cb926d04fd48251820b6034ae55082a2;hpb=269450b2e01d9e3445c0e546dfa68f6c791a8a66;p=lyx.git diff --git a/src/support/AppleSpeller.m b/src/support/AppleSpeller.m index a50365c7cb..3e9a2f8452 100644 --- a/src/support/AppleSpeller.m +++ b/src/support/AppleSpeller.m @@ -8,7 +8,6 @@ * Full author contact details are available in file CREDITS. */ -#import #import #import @@ -249,5 +248,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 }