blob: bcf676623388bbdea789ae39c09f1c44c4e4b892 [file] [log] [blame]
Rich Felker0b44a032011-02-12 00:22:29 -05001#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