* Full author contact details are available in file CREDITS.
*/
-#import <Carbon/Carbon.h>
#import <Cocoa/Cocoa.h>
#import <AvailabilityMacros.h>
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
}