Original Post
This is the header that causes the error. Ok well the thing is, is that when compiling on Fedora Core 4, it gives me the error "Both little and big endian are defined", I check everything and as far as I know nothing else is defining BIG_ENDIAN not even this header. Could it have something to do with the preprocessor leaving BIG_ENDIAN in an undefined state?
#ifndef rbEndian
#define rbEndian
/*
LITTLE_ENDIAN <--- if compiling for a little endian machine
BIG_ENDIAN <--- if compiling for a big endian machine
rbMustDefineEndian <--- if you NEED LITTLE_ENDIAN or BIG_ENDIAN defined
want_rbEndianErrorCheck
Note: Try useing RUxx when possible.
*/
#if ((defined __cplusplus) || (defined _MSC_VER))
#define want_rbEndianErrorCheck
#endif
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
#if defined(__i386__) || defined(__i386) || defined(__ia64__) || defined(__x86_64__) || defined(__LITTLE_ENDIAN__)
#define LITTLE_ENDIAN
#endif
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
#if defined(__POWERPC__) || defined(__BIG_ENDIAN__)
#define BIG_ENDIAN
#endif
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
#if (defined LITTLE_ENDIAN) && (defined BIG_ENDIAN)
#error Both little and big endian are defined
#endif