diff options
Diffstat (limited to '')
-rw-r--r-- | usr/include/endian.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/usr/include/endian.h b/usr/include/endian.h new file mode 100644 index 0000000..61cda3a --- /dev/null +++ b/usr/include/endian.h @@ -0,0 +1,21 @@ +/* + * endian.h + */ + +#ifndef _ENDIAN_H +#define _ENDIAN_H + +#include <klibc/endian.h> + +#define LITTLE_ENDIAN __LITTLE_ENDIAN +#define BIG_ENDIAN __BIG_ENDIAN +#define PDP_ENDIAN __PDP_ENDIAN +#define BYTE_ORDER __BYTE_ORDER + +#if __BYTE_ORDER == __LITTLE_ENDIAN +# define __LONG_LONG_PAIR(HI, LO) LO, HI +#elif __BYTE_ORDER == __BIG_ENDIAN +# define __LONG_LONG_PAIR(HI, LO) HI, LO +#endif + +#endif /* _ENDIAN_H */ |