diff options
Diffstat (limited to 'testing/hstox/byteswap.h')
-rw-r--r-- | testing/hstox/byteswap.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/hstox/byteswap.h b/testing/hstox/byteswap.h new file mode 100644 index 00000000..b5a58f66 --- /dev/null +++ b/testing/hstox/byteswap.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifdef __APPLE__ | ||
2 | #include <libkern/OSByteOrder.h> | ||
3 | |||
4 | #define htobe64(x) OSSwapHostToBigInt64(x) | ||
5 | #define be64toh(x) OSSwapBigToHostInt64(x) | ||
6 | #endif | ||