1
0

endian.h 343 B

1234567891011121314151617
  1. #ifndef _ENDIAN_H
  2. #define _ENDIAN_H
  3. #define __LITTLE_ENDIAN 1234
  4. #define __BIG_ENDIAN 4321
  5. #define __PDP_ENDIAN 3412
  6. #include <bits/endian.h>
  7. #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  8. #define BIG_ENDIAN __BIG_ENDIAN
  9. #define LITTLE_ENDIAN __LITTLE_ENDIAN
  10. #define PDP_ENDIAN __PDP_ENDIAN
  11. #define BYTE_ORDER __BYTE_ORDER
  12. #endif
  13. #endif