Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHJL1-0005Cz-A7 for qemu-devel@nongnu.org; Sun, 06 Dec 2009 10:47:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHJKw-0005Ao-EV for qemu-devel@nongnu.org; Sun, 06 Dec 2009 10:47:54 -0500 Received: from [199.232.76.173] (port=60655 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHJKw-0005Ag-7N for qemu-devel@nongnu.org; Sun, 06 Dec 2009 10:47:50 -0500 Received: from fmmailgate03.web.de ([217.72.192.234]:55849) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHJKv-0008BR-OF for qemu-devel@nongnu.org; Sun, 06 Dec 2009 10:47:50 -0500 Message-Id: <6B14ABA9-3C49-4FF8-B74F-19528F8D86F6@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <56828424-D6AF-4289-97D9-A5B7643871A4@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [Qemu-devel] [PATCH] Fixes compile problems on Mac OS 10.4 and under. Date: Sun, 6 Dec 2009 16:47:25 +0100 References: <4ab3b028.a153f10a.20ec.ffff9551SMTPIN_ADDED@mx.google.com> <56828424-D6AF-4289-97D9-A5B7643871A4@gmail.com> Sender: andreas.faerber@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: G 3 Cc: qemu-devel@nongnu.org Am 18.09.2009 um 18:18 schrieb G 3: > This patch eliminates all the warnings and errors that appear when > compiling cocoa.m on Mac OS 10.4 and under. > > Signed-off-by: John Arbuckle > --- > cocoa.m | 25 ++++++++++++++++--------- > 1 files changed, 16 insertions(+), 9 deletions(-) > > diff --git a/cocoa.m b/cocoa.m > index 55ff2b4..cb75e3e 100644 > --- a/cocoa.m > +++ b/cocoa.m > @@ -23,11 +23,17 @@ > */ > > #import > - > #include "qemu-common.h" > #include "console.h" > #include "sysemu.h" > > +#ifndef MAC_OS_X_VERSION_10_4 > +#define MAC_OS_X_VERSION_10_4 1040 > +#endif I've picked this part up... > @@ -421,7 +429,7 @@ int cocoa_keycode_to_qemu(int keycode) > [self ungrabMouse]; > [self setContentDimensions]; > // test if host support "enterFullScreenMode:withOptions" at > compiletime > -#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4) > +#if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_4) > if ([NSView > respondsToSelector:@selector(exitFullScreenModeWithOptions:)]) { // > test if "exitFullScreenModeWithOptions" is supported on host at > runtime > [self exitFullScreenModeWithOptions:nil]; > } else { ... but why do you do these changes? On v10.4 respondsToSelector: should simply return NO at runtime and not call the method. Are there warnings? Andreas