
26 Feb
2007
26 Feb
'07
6:18 p.m.
On Mon, Feb 26, 2007 at 11:56:11AM -0400, bulia byak wrote:
So the next questions is, do we have an ifdef that filters out only PPC-based Macs? If not, can the autoconfig gurus please help with creating one?
Whoops, I misunderstood the defines in endian.h. Here's a correction:
#include <endian.h> #include <stdio.h>
int main() { #if __BYTE_ORDER == __BIG_ENDIAN printf("This is a big endian machine\n"); #elif __BYTE_ORDER == __LITTLE_ENDIAN printf("This is a little endian machine\n"); #else printf("Don't know the endianness of this machine\n"); #endif return 0; }