qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH v2 2/3] Cocoa: ppc64 host support


From: Mike Kronenberg
Subject: [Qemu-devel] Re: [PATCH v2 2/3] Cocoa: ppc64 host support
Date: Sun, 6 Dec 2009 14:41:58 +0100

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. Int on the other hand is only throwing a warning 
on Leopard if I'm not mistaken.

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

I have no G5 at hand to test either.

Mike

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]