Fix compiler issues on Tiger

This commit is contained in:
Bjorn Winckler
2009-01-06 22:58:38 +01:00
parent 79851d47b1
commit aefc975f1b
2 changed files with 15 additions and 3 deletions
+9
View File
@@ -892,10 +892,19 @@ defaultLineHeightForFont(NSFont *font)
return NSNotFound;
}
// The return type of this message changed with OS X 10.5 so we need this
// kludge in order to avoid compiler warnings on OS X 10.4.
#if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_4)
- (NSInteger)conversationIdentifier
{
return (NSInteger)self;
}
#else
- (long)conversationIdentifier
{
return (long)self;
}
#endif
- (NSRange)selectedRange
{
+6 -3
View File
@@ -40,9 +40,12 @@ static void loadSymbols()
}
static CFStringRef ODBEDITOR = CFSTR("org.slashpunt.edit_in_odbeditor");
static CFStringRef ODB_BUNDLE_IDENTIFIER = CFSTR("ODBEditorBundleIdentifier");
static CFStringRef ODB_EDITOR_NAME = CFSTR("ODBEditorName");
// The compiler on OS X 10.4 balks at using CFSTR() for globals so we get
// around with this some ugly type casting.
static CFStringRef ODBEDITOR = (CFStringRef)@"org.slashpunt.edit_in_odbeditor";
static CFStringRef ODB_BUNDLE_IDENTIFIER =
(CFStringRef)@"ODBEditorBundleIdentifier";
static CFStringRef ODB_EDITOR_NAME = (CFStringRef)@"ODBEditorName";
static NSString *ODBEDITOR_DIR =
@"/Library/InputManagers/Edit in ODBEditor";
static NSString *ODBEDITOR_PATH =