mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
83377e6865
netinet/in.h
11 lines
228 B
C
11 lines
228 B
C
#if defined(__APPLE__)
|
|
#include <libkern/OSByteOrder.h>
|
|
|
|
#define htobe64(x) OSSwapHostToBigInt64(x)
|
|
#define be64toh(x) OSSwapBigToHostInt64(x)
|
|
#elif defined (__FreeBSD__)
|
|
#include <sys/endian.h>
|
|
#else
|
|
#include <endian.h>
|
|
#endif
|