Re: [AD] OSX qtmidi.m build failure fix |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] OSX qtmidi.m build failure fix
- From: "Peter Hull" <peterhull90@xxxxxxxxxx>
- Date: Sat, 15 Apr 2006 20:54:40 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=r18yONFRUjf13S1ugpGumBtepa12XFqC6VMHakySycNJB8RBKFfXUqIMEbEbrSIXRzgeeRg/tVYCGhX46W9czt0CDjW8xTfvAN+jZSRB4E/2jCOdYk8XCyxG6Q7KHQWmt7PfgacgTBAg8BVhpUd9p7VkmuASds6HIvY9xD/XMYU=
On 4/15/06, Miguel A. Gavidia <juvinious@xxxxxxxxxx> wrote:
> Ok my output is this:
> TARGET_RT_BIG_ENDIAN = 0
> TARGET_RT_LITTLE_ENDIAN = 1
>
> You know though it doesn't matter though, either doing:
> #if or #ifndef TARGET_RT_BIG_ENDIAN
> will work either way.
> As one is defined for each, so either platform won't have both.
> ie:
> ppc will only have TARGET_RT_BIG_ENDIAN
> x86 will only have TARGET_RT_LITTLE_ENDIAN
No, both are defined for both.
On PPC, I get
TARGET_RT_BIG_ENDIAN = 1
TARGET_RT_LITTLE_ENDIAN = 0
So #ifdef wouldn't work, for example
#ifdef TARGET_RT_BIG_ENDIAN
big_endian_code();
#else
little_endian_code();
#endif
would run big_endian_code() even on little-endian platforms.
Hope that makes sense.
Pete