mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-09-01 22:59:37 +00:00
Merge pull request #392 from paullouisageneau/fix-htonll
Fix htonll fallback implementation
This commit is contained in:
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
#ifndef htonll
|
#ifndef htonll
|
||||||
#define htonll(x) \
|
#define htonll(x) \
|
||||||
((uint64_t)htonl(((uint64_t)(x)&0xFFFFFFFF) << 32) | (uint64_t)htonl((uint64_t)(x) >> 32))
|
((uint64_t)(((uint64_t)htonl((uint32_t)(x))) << 32) | (uint64_t)htonl((uint32_t)((x) >> 32)))
|
||||||
#endif
|
#endif
|
||||||
#ifndef ntohll
|
#ifndef ntohll
|
||||||
#define ntohll(x) htonll(x)
|
#define ntohll(x) htonll(x)
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
#ifndef htonll
|
#ifndef htonll
|
||||||
#define htonll(x) \
|
#define htonll(x) \
|
||||||
((uint64_t)htonl(((uint64_t)(x)&0xFFFFFFFF) << 32) | (uint64_t)htonl((uint64_t)(x) >> 32))
|
((uint64_t)(((uint64_t)htonl((uint32_t)(x))) << 32) | (uint64_t)htonl((uint32_t)((x) >> 32)))
|
||||||
#endif
|
#endif
|
||||||
#ifndef ntohll
|
#ifndef ntohll
|
||||||
#define ntohll(x) htonll(x)
|
#define ntohll(x) htonll(x)
|
||||||
|
Reference in New Issue
Block a user