1 #ifndef AL_ENDIANTEST_H
2 #define AL_ENDIANTEST_H
4 #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__)
5 #define IS_LITTLE_ENDIAN (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
9 unsigned char b
[sizeof(unsigned int)];
11 #define IS_LITTLE_ENDIAN (EndianTest.b[0] == 1)
14 #endif /* AL_ENDIANTEST_H */