diff options
Diffstat (limited to 'include/endian.h')
-rw-r--r-- | include/endian.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/endian.h b/include/endian.h new file mode 100644 index 0000000..d21a9e6 --- /dev/null +++ b/include/endian.h @@ -0,0 +1,15 @@ +#ifdef HAVE_ENDIAN_H +#include_next <endian.h> +#endif + +#ifndef __LITTLE_ENDIAN +#define __LITTLE_ENDIAN 1234 +#endif + +#ifndef __BIG_ENDIAN +#define __BIG_ENDIAN 4321 +#endif + +#ifndef __BYTE_ORDER +#define __BYTE_ORDER BUILD_BYTE_ORDER +#endif |