
26 Feb
2007
26 Feb
'07
6:16 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?
Is endian.h available on all platforms? This works on Ubuntu:
#include <endian.h> #include <stdio.h>
int main() { #ifdef BIG_ENDIAN printf("This is a big endian machine\n"); #elif LITTLE_ENDIAN printf("This is a little endian machine\n"); #else printf("Neither BIG_ENDIAN nor LITTLE_ENDIAN are defined\n"); #endif return 0; }
Bryce