]> git.lyx.org Git - lyx.git/blobdiff - src/support/AppleSpeller.m
* layouttranslations.review - remove dupes
[lyx.git] / src / support / AppleSpeller.m
index a50365c7cb926d04fd48251820b6034ae55082a2..3e9a2f84529f286ab2174669fdd92e63567948e5 100644 (file)
@@ -8,7 +8,6 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#import <Carbon/Carbon.h>
 #import <Cocoa/Cocoa.h>
 
 #import <AvailabilityMacros.h>
@@ -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
 }