This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi all, Thanks for the responses, they gave me the information I needed. The final solution for newlib based systems seems to be the BYTE_ORDER macro and sys/param.h. This works for me for both flavors of ARM and SH tools as well as CYGWIN and MINGW which is all I need at the moment. I can't seem to find the __ versions of the macros in newlib. #include <sys/param.h> #ifdef BYTE_ORDER #if BYTE_ORDER == LITTLE_ENDIAN ... #elif BYTE_ORDER == BIG_ENDIAN ... #else #warning "Doesn't define a standard ENDIAN type" #endif #else #warning "Doesn't define BYTE_ORDER" #endif Thanks again Stan Katz ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |