summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar BALATON Zoltan2017-02-07 17:15:46 +0100
committerGravatar BALATON Zoltan2017-04-08 15:48:23 +0200
commitf8999ef550fe9a97b24f4bbb17b66f186a5deae1 (patch)
tree42d8e4c6c2ebe5666d69919835742d0656199a7f /include
parent4bdea2983a3204332b09408c62e440a0b8e23605 (diff)
downloadlibimobiledevice-f8999ef550fe9a97b24f4bbb17b66f186a5deae1.tar.gz
libimobiledevice-f8999ef550fe9a97b24f4bbb17b66f186a5deae1.tar.bz2
Define htobe16 if not defined
Diffstat (limited to 'include')
-rw-r--r--include/endianness.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/endianness.h b/include/endianness.h
index 585e768..2d6ad0e 100644
--- a/include/endianness.h
+++ b/include/endianness.h
@@ -27,6 +27,10 @@
27#endif 27#endif
28#endif 28#endif
29 29
30#ifndef htobe16
31#define htobe16 be16toh
32#endif
33
30#ifndef __bswap_32 34#ifndef __bswap_32
31#define __bswap_32(x) ((((x) & 0xFF000000) >> 24) \ 35#define __bswap_32(x) ((((x) & 0xFF000000) >> 24) \
32 | (((x) & 0x00FF0000) >> 8) \ 36 | (((x) & 0x00FF0000) >> 8) \