Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1 | #ifndef _ENDIAN_H |
2 | #define _ENDIAN_H | ||||
3 | |||||
4 | #define __LITTLE_ENDIAN 1234 | ||||
5 | #define __BIG_ENDIAN 4321 | ||||
6 | #define __PDP_ENDIAN 3412 | ||||
7 | |||||
8 | #include <bits/endian.h> | ||||
9 | |||||
10 | #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | ||||
11 | #define BIG_ENDIAN __BIG_ENDIAN | ||||
12 | #define LITTLE_ENDIAN __LITTLE_ENDIAN | ||||
13 | #define PDP_ENDIAN __PDP_ENDIAN | ||||
14 | #define BYTE_ORDER __BYTE_ORDER | ||||
15 | #endif | ||||
16 | |||||
17 | #endif |