summaryrefslogtreecommitdiffstats
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
parent4bdea2983a3204332b09408c62e440a0b8e23605 (diff)
downloadlibimobiledevice-f8999ef550fe9a97b24f4bbb17b66f186a5deae1.tar.gz
libimobiledevice-f8999ef550fe9a97b24f4bbb17b66f186a5deae1.tar.bz2
Define htobe16 if not defined
-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 @@
#endif
#endif
+#ifndef htobe16
+#define htobe16 be16toh
+#endif
+
#ifndef __bswap_32
#define __bswap_32(x) ((((x) & 0xFF000000) >> 24) \
| (((x) & 0x00FF0000) >> 8) \