diff options
Diffstat (limited to 'libusb/libusbi.h')
-rw-r--r-- | libusb/libusbi.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libusb/libusbi.h b/libusb/libusbi.h index a59a5e6..414da25 100644 --- a/libusb/libusbi.h +++ b/libusb/libusbi.h @@ -23,7 +23,6 @@ #include <config.h> -#include <endian.h> #include <pthread.h> #include <stddef.h> #include <sys/select.h> @@ -101,17 +100,6 @@ static inline void list_del(struct list_head *entry) const typeof( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) );}) -#define bswap16(x) (((x & 0xff) << 8) | (x >> 8)) -#if __BYTE_ORDER == __LITTLE_ENDIAN -#define cpu_to_le16(x) (x) -#define le16_to_cpu(x) (x) -#elif __BYTE_ORDER == __BIG_ENDIAN -#define le16_to_cpu(x) bswap16(x) -#define cpu_to_le16(x) bswap16(x) -#else -#error "Unrecognized endianness" -#endif - #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) |