summaryrefslogtreecommitdiff
path: root/testing/hstox/byteswap.h
blob: b5a58f665c57295ef02d941900cf1368809ebf90 (plain)
1
2
3
4
5
6
#ifdef __APPLE__
#include <libkern/OSByteOrder.h>

#define htobe64(x) OSSwapHostToBigInt64(x)
#define be64toh(x) OSSwapBigToHostInt64(x)
#endif