diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/byteorder/big_endian.h | 3 | ||||
| -rw-r--r-- | include/linux/byteorder/little_endian.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/byteorder/big_endian.h b/include/linux/byteorder/big_endian.h index 3c80fd7e8b56..d53a67dff018 100644 --- a/include/linux/byteorder/big_endian.h +++ b/include/linux/byteorder/big_endian.h | |||
| @@ -7,6 +7,9 @@ | |||
| 7 | #ifndef __BIG_ENDIAN_BITFIELD | 7 | #ifndef __BIG_ENDIAN_BITFIELD |
| 8 | #define __BIG_ENDIAN_BITFIELD | 8 | #define __BIG_ENDIAN_BITFIELD |
| 9 | #endif | 9 | #endif |
| 10 | #ifndef __BYTE_ORDER | ||
| 11 | #define __BYTE_ORDER __BIG_ENDIAN | ||
| 12 | #endif | ||
| 10 | 13 | ||
| 11 | #include <linux/types.h> | 14 | #include <linux/types.h> |
| 12 | #include <linux/swab.h> | 15 | #include <linux/swab.h> |
diff --git a/include/linux/byteorder/little_endian.h b/include/linux/byteorder/little_endian.h index 83195fb82962..f7f8ad13adb6 100644 --- a/include/linux/byteorder/little_endian.h +++ b/include/linux/byteorder/little_endian.h | |||
| @@ -7,6 +7,9 @@ | |||
| 7 | #ifndef __LITTLE_ENDIAN_BITFIELD | 7 | #ifndef __LITTLE_ENDIAN_BITFIELD |
| 8 | #define __LITTLE_ENDIAN_BITFIELD | 8 | #define __LITTLE_ENDIAN_BITFIELD |
| 9 | #endif | 9 | #endif |
| 10 | #ifndef __BYTE_ORDER | ||
| 11 | #define __BYTE_ORDER __LITTLE_ENDIAN | ||
| 12 | #endif | ||
| 10 | 13 | ||
| 11 | #include <linux/types.h> | 14 | #include <linux/types.h> |
| 12 | #include <linux/swab.h> | 15 | #include <linux/swab.h> |
