(OSX PPC) More ifdeffing to get RA OSX PPC to compile and link -

doesn't work right now
This commit is contained in:
twinaphex 2014-04-14 18:46:44 +02:00
parent d290cda2a9
commit 9b69deaa12
10 changed files with 17 additions and 2 deletions

View File

@ -272,7 +272,10 @@ static char** waiting_argv;
return;
NSComboBox* cb = (NSComboBox*)[[self.coreSelectSheet contentView] viewWithTag:1];
#if defined(MAC_OS_X_VERSION_10_6)
/* FIXME - Rewrite this so that this is no longer an associated object - requires ObjC 2.0 runtime */
self.core = objc_getAssociatedObject([cb objectValueOfSelectedItem], associated_core_key);
#endif
[self runCore];
}

View File

@ -220,7 +220,12 @@ NSWindowDelegate>
- (id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
{
#if defined(MAC_OS_X_VERSION_10_6)
return objc_getAssociatedObject([self.settings objectAtIndex:row], associated_name_tag);
#else
/* FIXME - Rewrite this so that this is no longer an associated object - requires ObjC 2.0 runtime */
return 0; /* stub */
#endif
}
- (void)tableViewSelectionDidChange:(NSNotification *)aNotification
@ -257,9 +262,12 @@ NSWindowDelegate>
if ([item isKindOfClass:[NSArray class]])
{
#ifdef MAC_OS_X_VERSION_10_6
/* FIXME - Rewrite this so that this is no longer an associated object - requires ObjC 2.0 runtime */
if ([[tableColumn identifier] isEqualToString:@"left"])
return objc_getAssociatedObject(item, associated_name_tag);
else
#endif
return @"";
}
else

View File

@ -298,7 +298,9 @@
"-DWANT_MINIZ,",
"-DHAVE_ZLIB,",
"-DRARCH_INTERNAL,",
"-DOSX",
"-DOSX,",
"-DHAVE_GLSL,",
"-DHAVE_RGUI",
);
PREBINDING = NO;
PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = NO;
@ -323,7 +325,9 @@
"-DWANT_MINIZ,",
"-DHAVE_ZLIB,",
"-DRARCH_INTERNAL,",
"-DOSX",
"-DOSX,",
"-DHAVE_GLSL,",
"-DHAVE_RGUI",
);
PREBINDING = NO;
PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = NO;