From: "Andreas Färber" <andreas.faerber@web.de>
To: Mike Kronenberg <mike.kronenberg@kronenberg.org>
Cc: Alexander Graf <alex@csgraf.de>, QEMU Developers <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Re: [PATCH v2 2/3] Cocoa: ppc64 host support
Date: Sun, 6 Dec 2009 15:09:06 +0100 [thread overview]
Message-ID: <DD6EC53D-EC23-4B5E-97ED-BFEE3D382E4A@web.de> (raw)
In-Reply-To: <CB324D95-CF08-4399-A5CD-1E8F138FA12C@kronenberg.org>
Am 06.12.2009 um 14:41 schrieb Mike Kronenberg:
> On 06.12.2009, at 14:00, Andreas Faerber wrote:
>
>> - int rectCount;
>> + NSInteger rectCount;
>
> I know that this is endorsed by apple since 10.5 but NSInteger will
> break compiling on Tiger and older.
You appear to be right there... no trace of it in 10.4u SDK.
> Int on the other hand is only throwing a warning on Leopard if I'm
> not mistaken.
On Leopard ppc it just warns and works because NSInteger == int.
On Leopard ppc64 it warns and fails at runtime because NSInteger != int.
> Especially with qemu, one has to have an eye on the type...
> NSInteger can be an int or a long, depending on the host...
>
> #if __LP64__ || NS_BUILD_32_LIKE_64
> typedef long NSInteger;
> typedef unsigned long NSUInteger;
> #else
> typedef int NSInteger;
> typedef unsigned int NSUInteger;
> #endif
Right, so we do need NSInteger - I'll add a version check. Thanks for
the feedback!
Andreas
next prev parent reply other threads:[~2009-12-06 14:09 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-06 4:57 [Qemu-devel] Adding support for Mac OS X ppc64 host Andreas Faerber
2009-12-06 4:57 ` [Qemu-devel] [PATCH 1/3] TCG: Mac OS X support for ppc64 target Andreas Faerber
2009-12-06 4:57 ` [Qemu-devel] [PATCH 2/3] Cocoa: ppc64 host support Andreas Faerber
2009-12-06 4:57 ` [Qemu-devel] [PATCH 3/3] Cocoa: Silence warnings Andreas Faerber
2009-12-06 5:13 ` [Qemu-devel] Re: [PATCH 1/3] TCG: Mac OS X support for ppc64 target malc
2009-12-06 5:25 ` Andreas Färber
2009-12-06 6:28 ` malc
2009-12-06 13:00 ` [Qemu-devel] [PATCH v2 " Andreas Faerber
2009-12-06 13:00 ` [Qemu-devel] [PATCH v2 2/3] Cocoa: ppc64 host support Andreas Faerber
2009-12-06 13:00 ` [Qemu-devel] [PATCH v2 3/3] Cocoa: Silence warnings Andreas Faerber
2009-12-06 13:02 ` [Qemu-devel] Re: [PATCH v2 2/3] Cocoa: ppc64 host support Alexander Graf
2009-12-06 13:23 ` Andreas Färber
2009-12-06 13:32 ` Alexander Graf
2009-12-06 13:41 ` Mike Kronenberg
2009-12-06 14:09 ` Andreas Färber [this message]
2009-12-06 15:21 ` [Qemu-devel] [PATCH v3 1/3] TCG: Mac OS X support for ppc64 target Andreas Faerber
2009-12-06 15:21 ` [Qemu-devel] [PATCH v3 2/3] Cocoa: ppc64 host support Andreas Faerber
2009-12-06 15:21 ` [Qemu-devel] [PATCH v3 3/3] Cocoa: Silence warnings Andreas Faerber
2009-12-06 13:08 ` [Qemu-devel] Re: [PATCH 1/3] TCG: Mac OS X support for ppc64 target Andreas Färber
2009-12-06 5:14 ` [Qemu-devel] Adding support for Mac OS X ppc64 host malc
2009-12-06 5:41 ` Andreas Färber
2009-12-06 6:37 ` malc
2009-12-11 21:32 ` Andreas Färber
2009-12-12 13:00 ` malc
2009-12-15 17:00 ` malc
2009-12-15 22:36 ` Andreas Färber
2009-12-12 1:21 ` Andreas Färber
2009-12-12 12:58 ` malc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DD6EC53D-EC23-4B5E-97ED-BFEE3D382E4A@web.de \
--to=andreas.faerber@web.de \
--cc=alex@csgraf.de \
--cc=mike.kronenberg@kronenberg.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).