source: trunk/dports/emulators/qemu/files/patch-cocoa.m @ 60755

Last change on this file since 60755 was 60755, checked in by jmr@…, 8 years ago

qemu: buildfix for tiger (#19161)

File size: 1.2 KB
Line 
1--- cocoa.m.orig        2009-07-17 10:56:22.000000000 +1000
2+++ cocoa.m     2009-11-22 20:29:06.000000000 +1100
3@@ -438,7 +438,7 @@ int cocoa_keycode_to_qemu(int keycode)
4         [self grabMouse];
5         [self setContentDimensions];
6 // test if host support "enterFullScreenMode:withOptions" at compiletime
7-#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)
8+#if defined(MAC_OS_X_VERSION_10_5) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
9         if ([NSView respondsToSelector:@selector(enterFullScreenMode:withOptions:)]) { // test if "enterFullScreenMode:withOptions" is supported on host at runtime
10             [self enterFullScreenMode:[NSScreen mainScreen] withOptions:[NSDictionary dictionaryWithObjectsAndKeys:
11                 [NSNumber numberWithBool:NO], NSFullScreenModeAllScreens,
12@@ -454,7 +454,7 @@ int cocoa_keycode_to_qemu(int keycode)
13             [fullScreenWindow setHasShadow:NO];
14             [fullScreenWindow setContentView:self];
15             [fullScreenWindow makeKeyAndOrderFront:self];
16-#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)
17+#if defined(MAC_OS_X_VERSION_10_5) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
18         }
19 #endif
20     }
Note: See TracBrowser for help on using the repository browser.