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:
Evgeny committed 2026-04-25 01:16:09 +03:00
1 parent 69b49d424b
commit 595d2b177b
5 files changed
+67 -81

No files matched your search

-3
View File
@@ -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>