Refactor: Replace custom tc_hton*/tc_ntoh* with standard htobe16/be16toh/htobe32/be32toh, move htobe16/be16toh to platform_compat.h
This commit is contained in:
1 parent
69b49d424b
commit
595d2b177b
5 files changed
+67
-81
No files matched your search
@@ -7,9 +7,6 @@
|
||||
#include <endian.h>
|
||||
#else
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#define htobe16(x) htons(x)
|
||||
#define be16toh(x) ntohs(x)
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
Reference in new issue
Block a user