mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
fix: Fix missing htonll definition when building for Windows
This commit is contained in:
@@ -31,6 +31,9 @@
|
||||
# ifndef ntonll
|
||||
# define ntohll(x) ((1==ntohl(1)) ? (x) : (((uint64_t)ntohl((x) & 0xFFFFFFFFUL)) << 32) | ntohl((uint32_t)((x) >> 32)))
|
||||
# endif
|
||||
#ifndef htonll
|
||||
# define htonll(x) ((1==htonl(1)) ? (x) : (((uint64_t)htonl((x) & 0xFFFFFFFFUL)) << 32) | htonl((uint32_t)((x) >> 32)))
|
||||
#endif
|
||||
#else
|
||||
# ifndef htonll
|
||||
# ifdef SYS_ENDIAN_H
|
||||
|
||||
Reference in New Issue
Block a user